|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-05 14:36 UTC] kalle@php.net
[2010-10-23 16:45 UTC] kalle@php.net
[2010-10-23 16:45 UTC] kalle@php.net
-Status: Assigned
+Status: Closed
-Type: Bug
+Type: Documentation Problem
-Package: Scripting Engine problem
+Package: Documentation problem
[2010-10-23 16:45 UTC] kalle@php.net
[2020-02-07 06:08 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Description: ------------ it seems that the exception message must not contain the hex 0 character like "\x00" i.e. message is truncated at first occurence of hex 0 Reproduce code: --------------- try { $msg = "Some error \x13 \x01 \xff \x00 message"; throw new Exception($msg); } catch(Exception $e) { echo '<pre>'; echo $e->getMessage()."\n"; echo $msg; echo '</pre>'; } Expected result: ---------------- Some error ? � message Some error ? � message Actual result: -------------- Some error ? Some error ? � message