php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62631 Malformed error messages (contain invalid characters)
Submitted: 2012-07-22 03:09 UTC Modified: 2012-07-22 03:39 UTC
From: bugs dot php dot net at majkl578 dot cz Assigned:
Status: Duplicate Package: Scripting Engine problem
PHP Version: 5.4.5 OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bugs dot php dot net at majkl578 dot cz
New email:
PHP Version: OS:

 

 [2012-07-22 03:09 UTC] bugs dot php dot net at majkl578 dot cz
Description:
------------
After running a test script below, CLI SAPI correctly outputs an expected error message, but FPM SAPI (at least) doesn't. The error message contains some invalid characters after the class name. Also the name of class & method are completely missing in the message.
I also attached an url-encoded version (to preserve invalid characters) of the message caught by error_get_last() in a shutdown handler.

Test script:
---------------
<?php

$foo = new stdClass();
echo $foo->bar();

Expected result:
----------------
Fatal error: Call to undefined method stdClass::bar() in /www/temp.php on line 10

Actual result:
--------------
Fatal error: in /www/temp.php on line 10

----------------

URL-encoded version of the error message:
Fatal+Error+Call+to+undefined+method+stdClass%E0%08K%B4c%F0%CB%DB%0C%3A%3Abar()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-22 03:13 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2012-07-22 03:13 UTC] rasmus@php.net
Are you using APC? If so, which version?
 [2012-07-22 03:29 UTC] bugs dot php dot net at majkl578 dot cz
-Status: Feedback +Status: Open
 [2012-07-22 03:29 UTC] bugs dot php dot net at majkl578 dot cz
Yes, 3.1.11-dev. After updating to 3.1.11 release, the problem seems to be gone.
 [2012-07-22 03:39 UTC] rasmus@php.net
Right, thought so.
 [2012-07-22 03:39 UTC] rasmus@php.net
-Status: Open +Status: Duplicate
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC