summaryrefslogtreecommitdiff
path: root/Zend/tests/bug64720.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-02-10 10:31:43 +0300
committerDmitry Stogov <dmitry@zend.com>2017-02-10 10:31:43 +0300
commitc39147d136d67bb3b9e36cdbef7944d831570af4 (patch)
treeb962155ec30daf11c4ed3a7655e705caa770a90f /Zend/tests/bug64720.phpt
parent1760b031eab5cac900bdbb9c72827b572fce52cf (diff)
parent1b1399c95d1358b23f234c14e84dda9b5007904e (diff)
downloadphp-git-c39147d136d67bb3b9e36cdbef7944d831570af4.tar.gz
Fixed bug #74053 (Corrupted class entries on shutdown when a destructor spawns another object). (jim at commercebyte dot com)
Merge branch 'master' of github.com:commercebyte/php-src * 'master' of github.com:commercebyte/php-src: Added EG(flags) - executor global flags EG_FLAGS_IN_SHUTDOWN - is set when PHP is in shutdown state newly added zend_object_store.no_reuse is redefined as a global zend_object_store_no_reuse, to avoid alignment issues Alignment fix, as per @nikic The test scripts bug64720.phpt and bug68652.phpt were relying on the buggy behavior, when PHP returns "Undefined static property" error due to class entry corruption. With my fix for bug 74053, both tests return no errors now, I corrected the EXPECTF accordingly Bug Fix: Corrupted class entries on shutdown when a destructor spawns another object (C) 2017 CommerceByte Consulting
Diffstat (limited to 'Zend/tests/bug64720.phpt')
-rw-r--r--Zend/tests/bug64720.phpt9
1 files changed, 3 insertions, 6 deletions
diff --git a/Zend/tests/bug64720.phpt b/Zend/tests/bug64720.phpt
index 45dee3e8c4..efe3379bd4 100644
--- a/Zend/tests/bug64720.phpt
+++ b/Zend/tests/bug64720.phpt
@@ -44,9 +44,6 @@ $foo = new Foo();
$bar = new Bar();
$bar->test();
?>
---EXPECTF--
-Fatal error: Uncaught Error: Access to undeclared static property: Stat::$requests in %sbug64720.php:12
-Stack trace:
-#0 [internal function]: Stat->__destruct()
-#1 {main}
- thrown in %sbug64720.php on line 12
+OK
+--EXPECT--
+OK