|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-17 19:02 UTC] daniel dot mueller at inexio dot net
[2009-04-20 15:58 UTC] jani@php.net
[2009-04-21 08:12 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 13 08:00:02 2025 UTC |
Description: ------------ The creation of a default object from an empty value triggers a warning with level E_STRICT. If an error handler catches this warning, in some cases the automatic initialization of the object fails. Without error handler, everything works as expected. Affected versions: 5.3.0RC1, 5.3.0alpha3 Not affected: 5.2.x Reproduce code: --------------- <? function error_handler($errno, $errstr, $errfile, $errline, $errcontext) { return true; } function test() { $data->id = 1; var_dump($data); } set_error_handler("error_handler"); test(); Expected result: ---------------- object(stdClass)#1 (1) { ["id"]=> int(1) } Actual result: -------------- NULL