]> granicus.if.org Git - php/commitdiff
MFH: there is no ce at this point, revert this line to its previous state
authorAntony Dovgal <tony2001@php.net>
Mon, 29 May 2006 21:28:29 +0000 (21:28 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 29 May 2006 21:28:29 +0000 (21:28 +0000)
Zend/zend_compile.c

index cf2c7fe3d0d83338518a983f311b91d07dc6b70d..4b5410ac7229874eed383a025251d9b71f09bf89 100644 (file)
@@ -2333,7 +2333,7 @@ ZEND_API zend_class_entry *do_bind_inherited_class(zend_op *opline, HashTable *c
                         * so we shut up about it.  This allows the if (!defined('FOO')) { return; }
                         * approach to work.
                         */
-                       zend_error(E_COMPILE_ERROR, "Cannot redeclare class %s", ce->name);
+                       zend_error(E_COMPILE_ERROR, "Cannot redeclare class %s", opline->op2.u.constant.value.str.val);
                }
                return NULL;
        } else {