Edit report at https://bugs.php.net/bug.php?id=62456&edit=1
ID: 62456 Comment by: iblacksmoke at gmail dot com Reported by: iblacksmoke at gmail dot com Summary: Incorrect description of notice Status: Feedback Type: Bug Package: Scripting Engine problem Operating System: debian linux PHP Version: 5.4.4 Block user comment: N Private report: N New Comment: My test script contains only lines, that I wrote in report. More information about of php and extensions: root@pav-home:~# php -v PHP 5.4.4-2~dotdeb.0 (cli) (built: Jun 22 2012 13:21:56) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies root@pav-home:~# root@pav-home:~# php -m [PHP Modules] apc bcmath bz2 calendar Core ctype curl date dba dom ereg exif fileinfo filter ftp gd geoip gettext hash iconv json libxml mbstring mcrypt mhash mysql mysqli openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline redis Reflection session shmop SimpleXML soap sockets SPL sqlite3 ssh2 standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlrpc xmlwriter zip zlib [Zend Modules] root@pav-home:~# Also, I use php build by dotdeb.org. Maybe, problem in this. Previous Comments: ------------------------------------------------------------------------ [2012-07-02 00:52:17] ahar...@php.net 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? ------------------------------------------------------------------------ [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