|  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
 [2012-07-22 03:09 UTC] bugs dot php dot net at majkl578 dot cz
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:

$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:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-22 03:13 UTC]
-Status: Open +Status: Feedback
 [2012-07-22 03:13 UTC]
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]
Right, thought so.
 [2012-07-22 03:39 UTC]
-Status: Open +Status: Duplicate
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 06:01:29 2024 UTC