|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-09-24 10:59 UTC] nikic@php.net
-Assigned To:
+Assigned To: nikic
[2016-09-24 11:24 UTC] nikic@php.net
[2016-09-24 11:24 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
[2016-10-17 10:07 UTC] bwoebi@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
Description: ------------ If an undefined unqualified constant is used in a parameter default value and a registered error handler converts the "undefined constant" notice into an exception PHP will hang. This only happens if global registers are used. Test script: --------------- <?php error_reporting(E_ALL); function doSomething(string $value = UNDEFINED_XYZ) { } set_error_handler(function() { throw new Exception; }); doSomething(); Expected result: ---------------- Exception is thrown Actual result: -------------- PHP enters an infinite loop