Bug #70995 [Nab]: TypeErrors generates always a message on stderr
| From: | richarddeloge at gmail dot com | Date: | Mon, 30 Nov 2015 11:36:18 +0000 |
| Subject: | Bug #70995 [Nab]: TypeErrors generates always a message on stderr | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197515@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70995&edit=1
ID: 70995
User updated by: richarddeloge at gmail dot com
Reported by: richarddeloge at gmail dot com
Summary: TypeErrors generates always a message on stderr
Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Linux
PHP Version: 7.0.0RC8
Block user comment: N
Private report: N
New Comment:
Yes, this behavior come from new default value of this xdebug parameter.
Previous Comments:
------------------------------------------------------------------------
[2015-11-30 08:44:45] requinix@php.net
http://bugs.xdebug.org/view.php?id=1217
Apparently the workaround is to turn off xdebug.show_error_trace.
------------------------------------------------------------------------
[2015-11-30 08:06:06] richarddeloge at gmail dot com
Hi,
I'm sorry, i forgot to disable xdebug after my tests...
I will open an issue on xdebug.
Thanks
Richard
------------------------------------------------------------------------
[2015-11-30 02:52:41] laruence@php.net
are you running with xdebug or something similar?
thanks
------------------------------------------------------------------------
[2015-11-29 23:23:01] richarddeloge at gmail dot com
Description:
------------
Hi,
Since few day, each TypeError exceptions generates also an error message on the stderr output, even
if the error has ben catched by a try/catch bloc or if error reporting has been disabled.
Test script:
---------------
error_reporting(0);
$a = function (string $b) {};
try {
$a(array());
} catch (TypeError $e){
}
Actual result:
--------------
TypeError: Argument 1 passed to {closure}() must be of the type string, array given, called in
Command line code on line 1 in Command line code on line 1
Call Stack:
0.0001 377264 1. {main}() Command line code:0
0.0002 378088 2. {closure:Command line code:1-1}($b = array ()) Command line code:1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70995&edit=1