Bug #62456 [Opn->Fbk]: Incorrect description of notice
| From: | aharvey@php.net | Date: | Mon, 02 Jul 2012 00:52:17 +0000 |
| Subject: | Bug #62456 [Opn->Fbk]: Incorrect description of notice | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-171661@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62456&edit=1
ID: 62456
Updated by: aharvey@php.net
Reported by: iblacksmoke at gmail dot com
Summary: Incorrect description of notice
-Status: Open
+Status: Feedback
Type: Bug
-Package: I18N and L10N related
+Package: Scripting Engine problem
Operating System: debian linux
PHP Version: 5.4.4
Block user comment: N
Private report: N
New Comment:
I can't reproduce this.
What extensions do you have loaded (php -m output would be good, if possible), and
can you please check your local test script for any non-printable characters
embedded within it?
Previous Comments:
------------------------------------------------------------------------
[2012-07-01 14:16:58] Sjon at hortensius dot net
If you suspect that this is caused by encoding in your script, can't you post an
example that actually contains these characters? Because your current test-script
works fine here.
Maybe you can post an example with eval and chr?
------------------------------------------------------------------------
[2012-06-30 22:57:59] iblacksmoke at gmail dot com
Description:
------------
Description of notice when calling missing property of standard php object contains incorrect
characters (possibly from different encoding). They cause error in class of standard class
ErrorException, and script returns fatal error(with no information) rather than exception. It turns
out there as much as two bugs: incorrect encoding of strings and lack of data filtering in
ErrorException constructor.
Test script:
---------------
one:
$test = new StdClass();
echo $test->qwerty;
two:
set_error_handler(function($errno, $errstr, $errfile, $errline){
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
});
$test = new StdClass();
echo $test->qwerty;
Expected result:
----------------
one:
Notice: Undefined property: stdClass::$qwerty in script
two:
correct php exception
Actual result:
--------------
one:
Notice: Undefined property: stdClass�K�::$qwerty in script
two:
Fatal error: in script
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62456&edit=1