Bug #72009 [Opn->Csd]: Error Operator Control not working properly
| From: | mellonedain at gmail dot com | Date: | Tue, 12 Apr 2016 09:34:57 +0000 |
| Subject: | Bug #72009 [Opn->Csd]: Error Operator Control not working properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-200506@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72009&edit=1
ID: 72009
User updated by: mellonedain at gmail dot com
Reported by: mellonedain at gmail dot com
Summary: Error Operator Control not working properly
-Status: Open
+Status: Closed
Type: Bug
Package: Output Control
Operating System: Any
PHP Version: 7.0.5
Block user comment: N
Private report: N
New Comment:
This is unfortunately problem with xdebug option xdebug.force_error_reporting. Sorry for the
inconvenience.
Previous Comments:
------------------------------------------------------------------------
[2016-04-12 09:26:51] mellonedain at gmail dot com
In description I do some mistake. Should be:
Expected result:
----------------
Nothing
Actual result:
--------------
Warning: stream_socket_client(): unable to connect to tcp://localhost:6379 (Connection refused) in
../file.php on line 94
------------------------------------------------------------------------
[2016-04-12 09:24:50] mellonedain at gmail dot com
Description:
------------
Error Control Operator not working properly when we want to handle some errors in own code. Instead
of it we must use some hack described here: http://stackoverflow.com/questions/19116320/suppress-stream-socket-client-warnings
Test script:
---------------
$resource = @stream_socket_client($uri, $errno, $errstr, (float) $timeout, $flags);
if (!$resource) {
$this->onConnectionError(trim($errstr), $errno);
}
Expected result:
----------------
Warning: stream_socket_client(): unable to connect to tcp://localhost:6379 (Connection refused) in
../file.php on line 94
Actual result:
--------------
Nothing
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72009&edit=1