Bug #60569 [Asn]: Nullbyte truncates Exception $message.
| From: | felipe@php.net | Date: | Fri, 20 Apr 2012 01:40:54 +0000 |
| Subject: | Bug #60569 [Asn]: Nullbyte truncates Exception $message. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169764@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60569&edit=1
ID: 60569
Updated by: felipe@php.net
Reported by: hanskrentel at yahoo dot de
Summary: Nullbyte truncates Exception $message.
Status: Assigned
Type: Bug
Package: Scripting Engine problem
Operating System: Fedora 14
PHP Version: 5.3.8
Assigned To: iliaa
Block user comment: N
Private report: N
New Comment:
I got the expected result:
Original Message..: Null Char Test.
Processed Message.: Null Char Test.
Previous Comments:
------------------------------------------------------------------------
[2012-04-18 09:45:23] laruence@php.net
Automatic comment on behalf of iliaa
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d4f05fbffc6f63e094c0f737e0477e27f1bf5f7f
Log: Fixed bug #60569 (Nullbyte truncates Exception $message).
------------------------------------------------------------------------
[2012-03-19 11:50:54] hanskrentel at yahoo dot de
Re-open because it is not fixed.
------------------------------------------------------------------------
[2012-03-14 10:52:47] hanskrentel at yahoo dot de
Tested against PHP trunk Revision: 324199 (Windows), there still is truncation on
the NULL char.
$original = "Null Char \0 Test.";
echo "Original Message..: ", $original, "\n";
$e = new Exception($original);
$processed = $e->getMessage();
echo "Processed Message.: ", $processed, "\n";
------------------------------------------------------------------------
[2012-03-11 18:15:12] iliaa@php.net
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2012-03-11 18:15:03] iliaa@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=324112
Log: Fixed bug #60569 (Nullbyte truncates Exception $message).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=60569
--
Edit this bug report at https://bugs.php.net/bug.php?id=60569&edit=1