]> granicus.if.org Git - php/commitdiff
Fix segfault
authorJason Greene <jason@php.net>
Tue, 30 Jul 2002 22:14:39 +0000 (22:14 +0000)
committerJason Greene <jason@php.net>
Tue, 30 Jul 2002 22:14:39 +0000 (22:14 +0000)
Zend/zend_compile.c

index df3549f2fd9869da81a7b6e2fa16035e0ce6d16b..e1cac9175ec3ec756cd92ce9201a46626df9e4db 100644 (file)
@@ -1723,7 +1723,7 @@ void zend_do_early_binding(TSRMLS_D)
        zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
        HashTable *table;
 
-       if (strchr(opline->op2.u.constant.value.str.val, ':')) {
+       if (opline->op2.op_type != IS_UNUSED && strchr(opline->op2.u.constant.value.str.val, ':')) {
                return;
        }
        if (do_bind_function_or_class(opline, CG(function_table), CG(class_table), 1)==FAILURE) {