|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-10-04 08:17 UTC] arjen at react dot com
[2013-12-31 15:00 UTC] nikic@php.net
-Assigned To:
+Assigned To: dmitry
[2013-12-31 15:00 UTC] nikic@php.net
[2013-12-31 15:09 UTC] nikic@php.net
-Status: Assigned
+Status: Wont fix
[2013-12-31 15:09 UTC] nikic@php.net
[2014-01-09 06:48 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 19:00:01 2025 UTC |
Description: ------------ If an object is created *after* the destructor shutdown, its dtor will be called when it is freed, which potentially happens during a phase of the shutdown process where the executor is no longer in a consistent state. The test script uses the ob callback (called after dtor shutdown) to create an object and bind it to to the error callback, which is later freed during zend_deactivate, as part of the executor shutdown. Result: /home/nikic/dev/php-dev/Zend/zend_hash.c(946) : ht=0x42dea5c is already destroyed Test script: --------------- <?php ob_start(function() { $foo = new Foo; set_error_handler(function() use ($foo) {}); }); class Foo { public function __destruct() { var_dump($GLOBALS); } }