From: tim dot lokot at printsoft dot com Operating system: Redhat PHP version: 5.0.2 PHP Bug Type: *Compile Issues Bug description: Compiled pear in php5 cgi uses php4 headers
Description: ------------ I've been trying to test PHP5 on my PHP4 webserver and ended up running PHP5 as a CGI with PHP4 as an Apache module. PHP4 was installed via RPM. I used this command to configure PHP5: './configure' '--prefix=/usr/local/php5' '--with-mysql=/usr/include/mysql/' '--with-config-file-path=/usr/local/lib/php5' '--includedir=/usr/local/php5/include' '--oldincludedir=/usr/local/php5/include' PHP5 seems to run fine until I try to add any extensions to it from PECL. Then the pear executable tells me that it has the wrong API in it. So now whenever it tries to install any PECL modules, I get API errors when PHP tries to load them. >From what I can tell I'm either (hopefully) missing a configure option, or the pear compile is finding the php4 headers by default and using them instead of the php5 ones. Actual result: -------------- The php5 pear executable returns this: Configuring for: PHP Api Version: 20020918 Zend Module Api No: 20020429 Zend Extension Api No: 20021010 phpinfo() returns this: PHP API 20031224 PHP Extension 20040412 Zend Extension 220040412 -- Edit bug report at http://bugs.php.net/?id=31486&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31486&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31486&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31486&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31486&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31486&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31486&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31486&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31486&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31486&r=support Expected behavior: http://bugs.php.net/fix.php?id=31486&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31486&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31486&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31486&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31486&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31486&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31486&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31486&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31486&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31486&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31486&r=mysqlcfg
