|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-07-28 09:24 UTC] kalle@php.net
-Status: Open
+Status: Verified
[2017-07-28 09:24 UTC] kalle@php.net
[2017-08-12 14:42 UTC] ajf@php.net
[2017-12-06 22:56 UTC] nikic@php.net
-Status: Verified
+Status: Duplicate
[2017-12-06 22:56 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 10:00:02 2025 UTC |
Description: ------------ Exception's message as string is truncated at the first occurrence of a null byte, notably a problem when anonymous classes are involved, as their name does contain a null byte thanks Test script: --------------- echo new Exception("XXXX " . get_class(new class{}) . " YYYY"); Expected result: ---------------- Exception: XXXX class@anonymous... YYYY in file:3 Stack trace: #0 {main} Actual result: -------------- Exception: XXXX class@anonymous in /in/mft0e:3 Stack trace: #0 {main}