Bug #70995 [NEW]: TypeErrors generates always a message on stderr

From: Date: Sun, 29 Nov 2015 23:23:02 +0000
Subject: Bug #70995 [NEW]: TypeErrors generates always a message on stderr
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197501@lists.php.net to get a copy of this message
From:             richarddeloge at gmail dot com
Operating system: Linux
PHP version:      7.0.0RC8
Package:          *General Issues
Bug Type:         Bug
Bug description:TypeErrors generates always a message on stderr

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 bug report at https://bugs.php.net/bug.php?id=70995&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=70995&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=70995&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=70995&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=70995&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=70995&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=70995&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=70995&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=70995&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=70995&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=70995&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=70995&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=70995&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=70995&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70995&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=70995&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=70995&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=70995&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70995&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=70995&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=70995&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#197501) next »