]> granicus.if.org Git - php/commitdiff
Fix segfault when a referenced parameter is specified with typehint.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Sat, 9 Aug 2003 19:29:38 +0000 (19:29 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Sat, 9 Aug 2003 19:29:38 +0000 (19:29 +0000)
Result of the node will never be used because verify_instanceof handler has
been eliminated.

Zend/zend_compile.c

index e1455576ed12aa9c877b0018c2334c8e310ce9c0..5e486d7a2f66ecc1aa25ca8c36ba85229fd0ff43 100644 (file)
@@ -1079,8 +1079,8 @@ void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initia
        } else {
                cur_arg_info->class_name = NULL;
                cur_arg_info->class_name_len = 0;
-               opline->result.u.EA.type |= EXT_TYPE_UNUSED;
        }
+       opline->result.u.EA.type |= EXT_TYPE_UNUSED;
 }