Edit report at https://bugs.php.net/bug.php?id=62631&edit=1
ID: 62631 User updated by: bugs dot php dot net at majkl578 dot cz Reported by: bugs dot php dot net at majkl578 dot cz Summary: Malformed error messages (contain invalid characters) -Status: Feedback +Status: Open Type: Bug Package: Scripting Engine problem Operating System: Debian PHP Version: 5.4.5 Block user comment: N Private report: N New Comment: Yes, 3.1.11-dev. After updating to 3.1.11 release, the problem seems to be gone. Previous Comments: ------------------------------------------------------------------------ [2012-07-22 03:13:00] ras...@php.net Are you using APC? If so, which version? ------------------------------------------------------------------------ [2012-07-22 03:09:19] 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() ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62631&edit=1