From: need dot coffee at gmail dot com
Operating system: Solaris 8/SPARC64
PHP version: 4CVS-2006-11-06 (snap)
PHP Bug Type: Unknown/Other Function
Bug description: "bugfix" in Zend/zend_execute.c breaks PEAR install
Description:
------------
First, I know this isn't the place for a PEAR bug; it
doesn't
appear to be a PEAR bug...
Trying to install php4-STABLE-200611061330 fails at PEAR
installation time with "Fatal error: Call to a member
function on a non-object in [,,,]/pear/PEAR/Installer/Role/
Common.php on line 90."
The pear code hasn't changed since I was able to last
install; however PHP code has. If I revert the change
recently made in Zend/zend_compile.c, it installs fine:
--- Zend/zend_compile.c~ Sun Oct 15 14:32:37 2006
+++ Zend/zend_compile.c Mon Nov 6 21:21:41 2006
@@ -1164,7 +1164,7 @@
if (zend_hash_find(&ce->parent->function_table, ce-
>parent->name, ce->parent->name_length+1, (void **)
&function)==SUCCESS) {
/* inherit parent's constructor */
- zend_hash_update(&ce->function_table, ce-
>parent->name, ce->parent->name_length+1, function, sizeof
(zend_function), NULL);
+ zend_hash_update(&ce->function_table, ce->name,
ce->name_length+1, function, sizeof(zend_function), NULL);
function_add_ref(function);
}
}
Reproduce code:
---------------
Download a recent snap and try to run 'make install'.
--
Edit bug report at http://bugs.php.net/?id=39413&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39413&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39413&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39413&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39413&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39413&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39413&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39413&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39413&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39413&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39413&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39413&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39413&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39413&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39413&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39413&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39413&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39413&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39413&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39413&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39413&r=mysqlcfg