Bug #62631 [Opn->Dup]: Malformed error messages (contain invalid characters)
| From: | rasmus@php.net | Date: | Sun, 22 Jul 2012 03:39:48 +0000 |
| Subject: | Bug #62631 [Opn->Dup]: Malformed error messages (contain invalid characters) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172148@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62631&edit=1
ID: 62631
Updated by: rasmus@php.net
Reported by: bugs dot php dot net at majkl578 dot cz
Summary: Malformed error messages (contain invalid
characters)
-Status: Open
+Status: Duplicate
Type: Bug
Package: Scripting Engine problem
Operating System: Debian
PHP Version: 5.4.5
Block user comment: N
Private report: N
New Comment:
Right, thought so.
Previous Comments:
------------------------------------------------------------------------
[2012-07-22 03:29:57] 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:13:00] rasmus@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