[PHP-DEV] Bug #9368: Impossible to load pgsql.so

2001-02-21 Thread dbucher

From: [EMAIL PROTECTED]
Operating system: Debian Linux
PHP version:  3.0 Latest CVS (21/02/2001)
PHP Bug Type: PostgreSQL related
Bug description:  Impossible to load pgsql.so

COULD NOT LOAD pgsql.so : I tryed two ways :

 * dl("pgsql.so")  gives an error :

Fatal error: Unable to load dynamic library '/usr/lib/php3/apache/pgsql.so' - 
/usr/lib/php3/apache/pgsql.so: undefined symbol: empty_string in 
/var/www/admin/sushis/exemple.php3 on line 6


 * "extension=pgsql.so" in /etc/php3/apache/php3.ini has NO effect :

Fatal error: Call to unsupported or undefined function pg_connect() in 
/var/www/admin/sushis/exemple.php3 on line 8


SOS ! PLEASE ! I am really annoyed and don't know *at* *all* what to do ?

The server is under Debian potato, the installed packages are :

 *** Opt web  php3 3.0.18-1.po 3.0.18-1.po A server-side, HTML-embed
 *** Opt web  php3-cgi 3.0.18-1.po 3.0.18-1.po A server-side, HTML-embed
 *** Opt web  php3-cgi-mys 3.0.18-1.po 3.0.18-1.po Mysql module for PHP3 (cg
 *** Opt web  php3-cgi-pgs 3.0.18-1.po 3.0.18-1.po PostgreSQL module for PHP
 *** Opt web  php3-mysql   3.0.18-1.po 3.0.18-1.po Mysql module for PHP3 (ap
 *** Opt web  php3-pgsql   3.0.18-1.po 3.0.18-1.po PostgreSQL module for PHP

# uname -a
Linux sashimi 2.2.18pre21 #1 Sat Nov 18 18:47:15 EST 2000 i686 unknown



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9368 Updated: Impossible to load pgsql.so

2001-02-21 Thread dbucher

ID: 9368
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: PostgreSQL related
Description: Impossible to load pgsql.so

It is really a bug. But it is not a PHP bug.

For information :
=

The bug is due to Debian. In some cases, you get a very
slightly different package name, for example from KDE
and this package is NOT compatible !!!

The package you should have is :
"3:3.0.18-1potato.2"
BUT you have :
"3:3.0.18-1.potato.2"

Just remark the point !!!
You have to get the right package (remove wrong package,
remove KDE from your sources.tree, reinstall correct
package)




Previous Comments:
---

[2001-02-21 07:58:02] [EMAIL PROTECTED]
COULD NOT LOAD pgsql.so : I tryed two ways :

 * dl("pgsql.so")  gives an error :

Fatal error: Unable to load dynamic library '/usr/lib/php3/apache/pgsql.so' - 
/usr/lib/php3/apache/pgsql.so: undefined symbol: empty_string in 
/var/www/admin/sushis/exemple.php3 on line 6


 * "extension=pgsql.so" in /etc/php3/apache/php3.ini has NO effect :

Fatal error: Call to unsupported or undefined function pg_connect() in 
/var/www/admin/sushis/exemple.php3 on line 8


SOS ! PLEASE ! I am really annoyed and don't know *at* *all* what to do ?

The server is under Debian potato, the installed packages are :

 *** Opt web  php3 3.0.18-1.po 3.0.18-1.po A server-side, HTML-embed
 *** Opt web  php3-cgi 3.0.18-1.po 3.0.18-1.po A server-side, HTML-embed
 *** Opt web  php3-cgi-mys 3.0.18-1.po 3.0.18-1.po Mysql module for PHP3 (cg
 *** Opt web  php3-cgi-pgs 3.0.18-1.po 3.0.18-1.po PostgreSQL module for PHP
 *** Opt web  php3-mysql   3.0.18-1.po 3.0.18-1.po Mysql module for PHP3 (ap
 *** Opt web  php3-pgsql   3.0.18-1.po 3.0.18-1.po PostgreSQL module for PHP

# uname -a
Linux sashimi 2.2.18pre21 #1 Sat Nov 18 18:47:15 EST 2000 i686 unknown


---


Full Bug description available at: http://bugs.php.net/?id=9368


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11487: eregi DO NOT FIND expression if string too complicated and from $fcontents

2001-06-18 Thread dbucher

From: [EMAIL PROTECTED]
Operating system: Linux Debian
PHP version:  3.0.17
PHP Bug Type: Scripting Engine problem
Bug description:  eregi DO NOT FIND expression if string too complicated and from 
$fcontents

In some cases, eregi_replace doesn't work. I found it didn't worked
when reading the a long/complicated line from a file :

1. I read $line from a file and $line becomes :

trtdPPM/tdtdGrandBento/tdtdhi/tdtd3128/tdtddef/tdtddef/tdtda
 href=\PHP_url_me?req_modmain=showprodreq_modsub=viewreq_id=1\[view]/a a 
href=\PHP_url_me?req_modmain=showprodreq_modsub=editreq_id=1\[edit]/a 
[del]/td/tr

2. $url_myself = http://1.1.1.249/admin/express/main.php3;;
   and $line = eregi_replace (PHP_url_me, $url_myself, $line);

   doesn't work !

3. For the other lines from the same file (shorter and with less
   special characters) it WORKS !

   AND that line is not tested the same as if I do
   $line2 = ...
   ($line  $line2) ?!

4. in eregi_replace ($pattern, $replace, $string), are there special characters into 
$string  and even, why the same $line is not the same when read from a file

CONCLUSION :

I suppose the bug is more in $fcontents than ereg, BUT WHY ereg
doesn't find a pattern which IS INTO the string ($line) ?
Whatever the line can be, the pattern is there, so why doesn't
it find it ?

I suppose you don't need any other information, but just in case :
 - Debian Linux potato
 - PHP 3.0.18

Denis



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]