php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70894 Null bytes in exception messages truncate them on string cast
Submitted: 2015-11-11 17:08 UTC Modified: 2015-11-12 09:01 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: me at kelunik dot com Assigned:
Status: Open Package: Scripting Engine problem
PHP Version: ANY OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: me at kelunik dot com
New email:
PHP Version: OS:

 

 [2015-11-11 17:08 UTC] me at kelunik dot com
Description:
------------
Null bytes in exception messages truncate the messages when the exception is casted to a string.

Affects also older versions of PHP.

Test script:
---------------
https://3v4l.org/JldYh

Expected result:
----------------
string(52) "Exception:  bar foo in /in/JldYh:3
Stack trace:
#0 {main}foo"

Actual result:
--------------
string(52) "Exception:  in /in/JldYh:3
Stack trace:
#0 {main}foo"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-11-12 09:01 UTC] reeze@php.net
-PHP Version: 7.0.0RC6 +PHP Version: ANY
 [2021-02-11 15:08 UTC] nicolasgrekas@php.net
Related To: Bug #61804
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC