cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h /tests bug38211.phpt
| From: | Dmitry Stogov | Date: | Wed, 26 Jul 2006 09:24:50 +0000 |
| Subject: | cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h /tests bug38211.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5133@lists.php.net to get a copy of this message | ||
dmitry Wed Jul 26 09:24:50 2006 UTC
Modified files:
/ZendEngine2 zend_vm_def.h zend_vm_execute.h
/ZendEngine2/tests bug38211.phpt
Log:
Fixed bug #38211 (variable name and cookie name match breaks script execution)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_def.h?r1=1.128&r2=1.129&diff_format=u Index: ZendEngine2/zend_vm_def.h diff -u ZendEngine2/zend_vm_def.h:1.128 ZendEngine2/zend_vm_def.h:1.129 --- ZendEngine2/zend_vm_def.h:1.128 Mon Jul 24 17:51:41 2006 +++ ZendEngine2/zend_vm_def.h Wed Jul 26 09:24:50 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_vm_def.h,v 1.128 2006/07/24 17:51:41 helly Exp $ */ +/* $Id: zend_vm_def.h,v 1.129 2006/07/26 09:24:50 dmitry Exp $ */ /* If you change this file, please regenerate the zend_vm_execute.h and * zend_vm_opcodes.h files by running: @@ -2939,6 +2939,8 @@ zval_copy_ctor(&tmp); convert_to_text(&tmp); varname = &tmp; + } else if (OP1_TYPE == IS_CV || OP1_TYPE == IS_VAR) { + varname->refcount++; } if (opline->op2.u.EA.type == ZEND_FETCH_STATIC_MEMBER) { @@ -2969,6 +2971,8 @@ if (varname == &tmp) { zval_dtor(&tmp); + } else if (OP1_TYPE == IS_CV || OP1_TYPE == IS_VAR) { + zval_ptr_dtor(&varname); } FREE_OP1(); ZEND_VM_NEXT_OPCODE(); @@ -3020,6 +3024,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (OP2_TYPE == IS_CV || OP2_TYPE == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -3044,6 +3050,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (OP2_TYPE == IS_CV || OP2_TYPE == IS_VAR) { + zval_ptr_dtor(&offset); } break; } http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_execute.h?r1=1.132&r2=1.133&diff_format=u Index: ZendEngine2/zend_vm_execute.h diff -u ZendEngine2/zend_vm_execute.h:1.132 ZendEngine2/zend_vm_execute.h:1.133 --- ZendEngine2/zend_vm_execute.h:1.132 Mon Jul 24 17:51:41 2006 +++ ZendEngine2/zend_vm_execute.h Wed Jul 26 09:24:50 2006 @@ -2016,6 +2016,8 @@ zval_copy_ctor(&tmp); convert_to_text(&tmp); varname = &tmp; + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + varname->refcount++; } if (opline->op2.u.EA.type == ZEND_FETCH_STATIC_MEMBER) { @@ -2046,6 +2048,8 @@ if (varname == &tmp) { zval_dtor(&tmp); + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + zval_ptr_dtor(&varname); } ZEND_VM_NEXT_OPCODE(); @@ -4594,6 +4598,8 @@ zval_copy_ctor(&tmp); convert_to_text(&tmp); varname = &tmp; + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + varname->refcount++; } if (opline->op2.u.EA.type == ZEND_FETCH_STATIC_MEMBER) { @@ -4624,6 +4630,8 @@ if (varname == &tmp) { zval_dtor(&tmp); + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + zval_ptr_dtor(&varname); } zval_dtor(free_op1.var); ZEND_VM_NEXT_OPCODE(); @@ -7769,6 +7777,8 @@ zval_copy_ctor(&tmp); convert_to_text(&tmp); varname = &tmp; + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + varname->refcount++; } if (opline->op2.u.EA.type == ZEND_FETCH_STATIC_MEMBER) { @@ -7799,6 +7809,8 @@ if (varname == &tmp) { zval_dtor(&tmp); + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + zval_ptr_dtor(&varname); } if (free_op1.var) {zval_ptr_dtor(&free_op1.var);}; ZEND_VM_NEXT_OPCODE(); @@ -9501,6 +9513,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -9525,6 +9539,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -11026,6 +11042,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -11050,6 +11068,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -12589,6 +12609,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -12613,6 +12635,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -14576,6 +14600,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -14600,6 +14626,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -15817,6 +15845,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -15841,6 +15871,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -16937,6 +16969,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -16961,6 +16995,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -18057,6 +18093,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -18081,6 +18119,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -19550,6 +19590,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -19574,6 +19616,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -20744,6 +20788,8 @@ zval_copy_ctor(&tmp); convert_to_text(&tmp); varname = &tmp; + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + varname->refcount++; } if (opline->op2.u.EA.type == ZEND_FETCH_STATIC_MEMBER) { @@ -20774,6 +20820,8 @@ if (varname == &tmp) { zval_dtor(&tmp); + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + zval_ptr_dtor(&varname); } ZEND_VM_NEXT_OPCODE(); @@ -22320,6 +22368,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -22344,6 +22394,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -23837,6 +23889,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -23861,6 +23915,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -25391,6 +25447,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -25415,6 +25473,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -27368,6 +27428,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -27392,6 +27454,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + zval_ptr_dtor(&offset); } break; } http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug38211.phpt?r1=1.1&r2=1.2&diff_format=u Index: ZendEngine2/tests/bug38211.phpt diff -u /dev/null ZendEngine2/tests/bug38211.phpt:1.2 --- /dev/null Wed Jul 26 09:24:50 2006 +++ ZendEngine2/tests/bug38211.phpt Wed Jul 26 09:24:50 2006 @@ -0,0 +1,10 @@ +--TEST-- +Bug #38211 (variable name and cookie name match breaks script execution) +--FILE-- +<?php +$test = 'test'; +unset($$test); +echo "ok\n"; +?> +--EXPECT-- +ok
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_def.h?r1=1.128&r2=1.129&diff_format=u Index: ZendEngine2/zend_vm_def.h diff -u ZendEngine2/zend_vm_def.h:1.128 ZendEngine2/zend_vm_def.h:1.129 --- ZendEngine2/zend_vm_def.h:1.128 Mon Jul 24 17:51:41 2006 +++ ZendEngine2/zend_vm_def.h Wed Jul 26 09:24:50 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_vm_def.h,v 1.128 2006/07/24 17:51:41 helly Exp $ */ +/* $Id: zend_vm_def.h,v 1.129 2006/07/26 09:24:50 dmitry Exp $ */ /* If you change this file, please regenerate the zend_vm_execute.h and * zend_vm_opcodes.h files by running: @@ -2939,6 +2939,8 @@ zval_copy_ctor(&tmp); convert_to_text(&tmp); varname = &tmp; + } else if (OP1_TYPE == IS_CV || OP1_TYPE == IS_VAR) { + varname->refcount++; } if (opline->op2.u.EA.type == ZEND_FETCH_STATIC_MEMBER) { @@ -2969,6 +2971,8 @@ if (varname == &tmp) { zval_dtor(&tmp); + } else if (OP1_TYPE == IS_CV || OP1_TYPE == IS_VAR) { + zval_ptr_dtor(&varname); } FREE_OP1(); ZEND_VM_NEXT_OPCODE(); @@ -3020,6 +3024,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (OP2_TYPE == IS_CV || OP2_TYPE == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -3044,6 +3050,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (OP2_TYPE == IS_CV || OP2_TYPE == IS_VAR) { + zval_ptr_dtor(&offset); } break; } http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_execute.h?r1=1.132&r2=1.133&diff_format=u Index: ZendEngine2/zend_vm_execute.h diff -u ZendEngine2/zend_vm_execute.h:1.132 ZendEngine2/zend_vm_execute.h:1.133 --- ZendEngine2/zend_vm_execute.h:1.132 Mon Jul 24 17:51:41 2006 +++ ZendEngine2/zend_vm_execute.h Wed Jul 26 09:24:50 2006 @@ -2016,6 +2016,8 @@ zval_copy_ctor(&tmp); convert_to_text(&tmp); varname = &tmp; + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + varname->refcount++; } if (opline->op2.u.EA.type == ZEND_FETCH_STATIC_MEMBER) { @@ -2046,6 +2048,8 @@ if (varname == &tmp) { zval_dtor(&tmp); + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + zval_ptr_dtor(&varname); } ZEND_VM_NEXT_OPCODE(); @@ -4594,6 +4598,8 @@ zval_copy_ctor(&tmp); convert_to_text(&tmp); varname = &tmp; + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + varname->refcount++; } if (opline->op2.u.EA.type == ZEND_FETCH_STATIC_MEMBER) { @@ -4624,6 +4630,8 @@ if (varname == &tmp) { zval_dtor(&tmp); + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + zval_ptr_dtor(&varname); } zval_dtor(free_op1.var); ZEND_VM_NEXT_OPCODE(); @@ -7769,6 +7777,8 @@ zval_copy_ctor(&tmp); convert_to_text(&tmp); varname = &tmp; + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + varname->refcount++; } if (opline->op2.u.EA.type == ZEND_FETCH_STATIC_MEMBER) { @@ -7799,6 +7809,8 @@ if (varname == &tmp) { zval_dtor(&tmp); + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + zval_ptr_dtor(&varname); } if (free_op1.var) {zval_ptr_dtor(&free_op1.var);}; ZEND_VM_NEXT_OPCODE(); @@ -9501,6 +9513,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -9525,6 +9539,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -11026,6 +11042,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -11050,6 +11068,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -12589,6 +12609,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -12613,6 +12635,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -14576,6 +14600,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -14600,6 +14626,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -15817,6 +15845,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -15841,6 +15871,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -16937,6 +16969,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -16961,6 +16995,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -18057,6 +18093,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -18081,6 +18119,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -19550,6 +19590,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -19574,6 +19616,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -20744,6 +20788,8 @@ zval_copy_ctor(&tmp); convert_to_text(&tmp); varname = &tmp; + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + varname->refcount++; } if (opline->op2.u.EA.type == ZEND_FETCH_STATIC_MEMBER) { @@ -20774,6 +20820,8 @@ if (varname == &tmp) { zval_dtor(&tmp); + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + zval_ptr_dtor(&varname); } ZEND_VM_NEXT_OPCODE(); @@ -22320,6 +22368,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -22344,6 +22394,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CONST == IS_CV || IS_CONST == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -23837,6 +23889,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -23861,6 +23915,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -25391,6 +25447,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -25415,6 +25473,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_VAR == IS_CV || IS_VAR == IS_VAR) { + zval_ptr_dtor(&offset); } break; } @@ -27368,6 +27428,8 @@ offset_len = norm_len; free_offset = 1; } + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + offset->refcount++; } if (zend_u_symtable_del(ht, Z_TYPE_P(offset), offset_key, offset_len+1) == SUCCESS && @@ -27392,6 +27454,8 @@ } if (free_offset) { efree(offset_key.v); + } else if (IS_CV == IS_CV || IS_CV == IS_VAR) { + zval_ptr_dtor(&offset); } break; } http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug38211.phpt?r1=1.1&r2=1.2&diff_format=u Index: ZendEngine2/tests/bug38211.phpt diff -u /dev/null ZendEngine2/tests/bug38211.phpt:1.2 --- /dev/null Wed Jul 26 09:24:50 2006 +++ ZendEngine2/tests/bug38211.phpt Wed Jul 26 09:24:50 2006 @@ -0,0 +1,10 @@ +--TEST-- +Bug #38211 (variable name and cookie name match breaks script execution) +--FILE-- +<?php +$test = 'test'; +unset($$test); +echo "ok\n"; +?> +--EXPECT-- +ok