]> granicus.if.org Git - php/commitdiff
Fixed SIGSEGV on assigment string offset by reference
authorDmitry Stogov <dmitry@php.net>
Mon, 27 Jun 2005 06:15:02 +0000 (06:15 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 27 Jun 2005 06:15:02 +0000 (06:15 +0000)
Zend/zend_execute.c

index 3f930232949bb4c9d51414a7c56aed52213fa506..614c57b559f5311217edd6fdf60949700adbaec2 100644 (file)
@@ -2260,6 +2260,7 @@ int zend_assign_ref_handler(ZEND_OPCODE_HANDLER_ARGS)
        zval **value_ptr_ptr = get_zval_ptr_ptr(&opline->op2, EX(Ts), BP_VAR_W);
 
        if (opline->op2.op_type == IS_VAR &&
+           value_ptr_ptr &&
            !(*value_ptr_ptr)->is_ref &&
             opline->extended_value == ZEND_RETURNS_FUNCTION && 
             !EX_T(opline->op2.u.var).var.fcall_returned_reference) {