|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-03-11 18:15 UTC] iliaa@php.net
[2012-03-11 18:15 UTC] iliaa@php.net
[2012-03-11 18:15 UTC] iliaa@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: iliaa
[2012-03-14 10:52 UTC] hanskrentel at yahoo dot de
[2012-03-19 11:50 UTC] hanskrentel at yahoo dot de
-Status: Closed
+Status: Assigned
[2012-03-19 11:50 UTC] hanskrentel at yahoo dot de
[2012-04-18 09:45 UTC] laruence@php.net
[2012-04-20 01:40 UTC] felipe@php.net
[2012-07-24 23:36 UTC] rasmus@php.net
[2013-11-17 09:33 UTC] laruence@php.net
[2013-11-17 09:33 UTC] laruence@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
Description: ------------ When an Exception class is instantiated and a string contain a nullbyte character ("\0") is used as $message, Exception::getMessage() returns a truncated string (the protected member Exception::$message is truncated as well). Looks like a duplicate of https://bugs.php.net/bug.php?id=50085 which outlined this as documentation problem. No idea why this is a documentation problem. Test script: --------------- $e = new Exception("test\0me"); echo $e->getMessage(); Expected result: ---------------- output (not displaying non-printable characters): testme Actual result: -------------- output (not displaying non-printable characters): test