I'm having 2 separate problems, I think. I have been able to compile and run php, but it outputs warnings when I execute from shell, and the built in apache module dumps the same errors into the server's error log when I start up apache. The shell is a bigger pain in the toosh because I have cron jobs that are filling root's mailbox up at an amazingly fast pace... scripts that don't do any reporting I've redirected output to /dev/null, but now I have to make sure they do their jobs! =)
Here's my scenario:
Platform: RedHat 7.2 (686)
PHP: 4.1.2
Configure:
'./configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-dom' '--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-regex=system' '--with-ttf' '--with-zlib' '--with-layout=GNU' '--enable-debugger' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--with-mysql' '--without-unixODBC' '--without-oracle' '--without-oci8' '--with-pspell=/usr/local' '--with-apxs=/usr/sbin/apxs' '--with-imap' '--with-kerberos'
Here are the errors that are dumped out:
PHP Warning: Function registration failed - duplicate name - imap_open in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imap_popen in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imap_reopen in Unknown on line 0
(duplicated for every imap function)
PHP Warning: imap: Unable to register functions, unable to load in Unknown on line 0
PHP Warning: U1À‰å]Éö¼': Unable to initialize module
Module compiled with debug=144, thread-safety=247 module API=1121346252
PHP compiled with debug=0, thread-safety=0 module API=20010901
These options need to match
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - mysql_connect in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - mysql_pconnect in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - mysql_close in Unknown on line 0
(duplicated for every mysql function)
PHP Warning: mysql: Unable to register functions, unable to load in Unknown on line 0
PHP Warning: U‰åSƒìè´üÿÿØ`: Unable to initialize module
Module compiled with debug=64, thread-safety=12 module API=1121610464
PHP compiled with debug=0, thread-safety=0 module API=20010901
These options need to match
in Unknown on line 0
This entire mess is then duplicated again, so everything is output twice. I was able to get rid of the "function registration failed" messages for shell by adding --without-mysql and --without-imap. This of course disables mysql & imap support, which isn't what I want... but the errors do go away... by compiling without mention of --with-mysql and --with-imap I end up with one set of errors... (they're defaults I believe...)
Even still, my shell version now outputs the "unable to initialize module" blocks 4 tiems... (see end of message
I starts off doing a ./make clean and a ./make distclean before runing my ./configure which cleans the config.cache, etc. I'm sure that nothing is hay-wire inside the php-distribution from all of the compiles I've done. I recently re-downloaded the source and went at it again but i get the same results.
There is a bug report on the php site that mentions this, but I'm not seeing a lot else out there about it, and there has only been one response to the bug... me! You can visit it at http://bugs.php.net/bug.php?id=15907
Anybody else having it??? It's not something you would see unless you looked!!!
Thanks,
Thom Porter
Here's my new shell output (i used --enable-debug and got php up to debug leve 1... 63-143 more to go!)
/usr/bin/php
Content-type: text/html
PHP Warning: (null): Unable to initialize module
Module compiled with debug=96, thread-safety=43 module API=1114292352
PHP compiled with debug=1, thread-safety=0 module API=20010901
These options need to match
in Unknown on line 0
Unknown(0) : Warning - (null): Unable to initialize module
Module compiled with debug=96, thread-safety=43 module API=1114292352
PHP compiled with debug=1, thread-safety=0 module API=20010901
These options need to match
PHP Warning: U1À‰å]Éö¼': Unable to initialize module
Module compiled with debug=144, thread-safety=55 module API=1113563852
PHP compiled with debug=1, thread-safety=0 module API=20010901
These options need to match
in Unknown on line 0
Unknown(0) : Warning - U1À‰å]Éö¼': Unable to initialize module
Module compiled with debug=144, thread-safety=55 module API=1113563852
PHP compiled with debug=1, thread-safety=0 module API=20010901
These options need to match
PHP Warning: U‰åSƒìè¤üÿÿÈ: Unable to initialize module
Module compiled with debug=144, thread-safety=61 module API=1113561632
PHP compiled with debug=1, thread-safety=0 module API=20010901
These options need to match
in Unknown on line 0
Unknown(0) : Warning - U‰åSƒìè¤üÿÿÈ: Unable to initialize module
Module compiled with debug=144, thread-safety=61 module API=1113561632
PHP compiled with debug=1, thread-safety=0 module API=20010901
These options need to match
PHP Warning: U‰åSƒìè´üÿÿØ: Unable to initialize module
Module compiled with debug=64, thread-safety=60 module API=1113561824
PHP compiled with debug=1, thread-safety=0 module API=20010901
These options need to match
in Unknown on line 0
Unknown(0) : Warning - U‰åSƒìè´üÿÿØ: Unable to initialize module
Module compiled with debug=64, thread-safety=60 module API=1113561824
PHP compiled with debug=1, thread-safety=0 module API=20010901
These options need to match