21,886
社区成员
发帖
与我相关
我的任务
分享
$test->findkey[] = 'test1 =?';
$test->findval[] = 2;
$test->findkey[] = 'test2 =?';
$test->findval[] = 3;
$test2 = $test;
unset($test2->findkey);
//unset($test2);
print_R($test);
print_R('<br />');exit;
$test2 = $test; //共享一个zval,is_ref=1,refcount=2
unset($test2->findkey);//改变zval的值
//unset($test2);//$test2断开zval,is_ref=0,refcount=1,但$test仍然指向着那个zval