ID: 39413
Updated by: [EMAIL PROTECTED]
Reported By: need dot coffee at gmail dot com
-Status: Open
+Status: Assigned
-Bug Type: Unknown/Other Function
+Bug Type: Class/Object related
-Operating System: Solaris 8/SPARC64
+Operating System: *
PHP Version: 4CVS-2006-11-06 (snap)
-Assigned To:
+Assigned To: iliaa
Previous Comments:
------------------------------------------------------------------------
[2006-11-07 11:26:34] need dot coffee at gmail dot com
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 this bug report at http://bugs.php.net/?id=39413&edit=1