php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch bug60169.diff for Scripting Engine problem Bug #60169Patch version 2011-10-31 06:48 UTC Return to Bug #60169 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions:Developer: laruence@php.netIndex: Zend/zend_vm_def.h =================================================================== --- Zend/zend_vm_def.h (revision 318598) +++ Zend/zend_vm_def.h (working copy) @@ -4689,12 +4689,12 @@ if (OP1_TYPE == IS_VAR || OP1_TYPE == IS_CV) { Z_ADDREF_P(value); EX_T(opline->result.var).var.ptr = value; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; } else { ALLOC_ZVAL(ret); INIT_PZVAL_COPY(ret, value); EX_T(opline->result.var).var.ptr = ret; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; if (!IS_OP1_TMP_FREE()) { zval_copy_ctor(EX_T(opline->result.var).var.ptr); } @@ -4741,12 +4741,12 @@ if (OP1_TYPE == IS_VAR || OP1_TYPE == IS_CV) { Z_ADDREF_P(value); EX_T(opline->result.var).var.ptr = value; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; } else { ALLOC_ZVAL(ret); INIT_PZVAL_COPY(ret, value); EX_T(opline->result.var).var.ptr = ret; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; if (!IS_OP1_TMP_FREE()) { zval_copy_ctor(EX_T(opline->result.var).var.ptr); } Index: Zend/zend_vm_execute.h =================================================================== --- Zend/zend_vm_execute.h (revision 318598) +++ Zend/zend_vm_execute.h (working copy) @@ -2863,12 +2863,12 @@ if (IS_CONST == IS_VAR || IS_CONST == IS_CV) { Z_ADDREF_P(value); EX_T(opline->result.var).var.ptr = value; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; } else { ALLOC_ZVAL(ret); INIT_PZVAL_COPY(ret, value); EX_T(opline->result.var).var.ptr = ret; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; if (!0) { zval_copy_ctor(EX_T(opline->result.var).var.ptr); } @@ -2914,12 +2914,12 @@ if (IS_CONST == IS_VAR || IS_CONST == IS_CV) { Z_ADDREF_P(value); EX_T(opline->result.var).var.ptr = value; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; } else { ALLOC_ZVAL(ret); INIT_PZVAL_COPY(ret, value); EX_T(opline->result.var).var.ptr = ret; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; if (!0) { zval_copy_ctor(EX_T(opline->result.var).var.ptr); } @@ -7223,12 +7223,12 @@ if (IS_TMP_VAR == IS_VAR || IS_TMP_VAR == IS_CV) { Z_ADDREF_P(value); EX_T(opline->result.var).var.ptr = value; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; } else { ALLOC_ZVAL(ret); INIT_PZVAL_COPY(ret, value); EX_T(opline->result.var).var.ptr = ret; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; if (!1) { zval_copy_ctor(EX_T(opline->result.var).var.ptr); } @@ -7275,12 +7275,12 @@ if (IS_TMP_VAR == IS_VAR || IS_TMP_VAR == IS_CV) { Z_ADDREF_P(value); EX_T(opline->result.var).var.ptr = value; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; } else { ALLOC_ZVAL(ret); INIT_PZVAL_COPY(ret, value); EX_T(opline->result.var).var.ptr = ret; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; if (!1) { zval_copy_ctor(EX_T(opline->result.var).var.ptr); } @@ -11694,12 +11694,12 @@ if (IS_VAR == IS_VAR || IS_VAR == IS_CV) { Z_ADDREF_P(value); EX_T(opline->result.var).var.ptr = value; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; } else { ALLOC_ZVAL(ret); INIT_PZVAL_COPY(ret, value); EX_T(opline->result.var).var.ptr = ret; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; if (!0) { zval_copy_ctor(EX_T(opline->result.var).var.ptr); } @@ -11746,12 +11746,12 @@ if (IS_VAR == IS_VAR || IS_VAR == IS_CV) { Z_ADDREF_P(value); EX_T(opline->result.var).var.ptr = value; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; } else { ALLOC_ZVAL(ret); INIT_PZVAL_COPY(ret, value); EX_T(opline->result.var).var.ptr = ret; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; if (!0) { zval_copy_ctor(EX_T(opline->result.var).var.ptr); } @@ -27346,12 +27346,12 @@ if (IS_CV == IS_VAR || IS_CV == IS_CV) { Z_ADDREF_P(value); EX_T(opline->result.var).var.ptr = value; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; } else { ALLOC_ZVAL(ret); INIT_PZVAL_COPY(ret, value); EX_T(opline->result.var).var.ptr = ret; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; if (!0) { zval_copy_ctor(EX_T(opline->result.var).var.ptr); } @@ -27397,12 +27397,12 @@ if (IS_CV == IS_VAR || IS_CV == IS_CV) { Z_ADDREF_P(value); EX_T(opline->result.var).var.ptr = value; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; } else { ALLOC_ZVAL(ret); INIT_PZVAL_COPY(ret, value); EX_T(opline->result.var).var.ptr = ret; - EX_T(opline->result.var).var.ptr_ptr = NULL; + EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr; if (!0) { zval_copy_ctor(EX_T(opline->result.var).var.ptr); } |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Thu Nov 21 11:01:29 2024 UTC |