#43070 [Opn->Bgs]: socket_select produces output warnings with strict mode
| From: | jani@php.net | Date: | Mon, 22 Oct 2007 19:19:08 +0000 |
| Subject: | #43070 [Opn->Bgs]: socket_select produces output warnings with strict mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118837@lists.php.net to get a copy of this message | ||
ID: 43070
Updated by: jani@php.net
Reported By: manirus at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Sockets related
Operating System: suse 10.1
PHP Version: 5.2.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2007-10-22 18:27:52] manirus at gmail dot com
Description:
------------
In strict error reporting mode, this following sample code produces
warnings:
Strict Standards: Only variables should be passed by reference...
PHP Strict Standards: Only variables should be passed by reference...
As you can imagine calling select a few thousand times can generate
some unwanted results :)
Reproduce code:
---------------
<?php
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_select(array($sock),$w=NULL,$e=NULL,0);
?>
Expected result:
----------------
No warnings emitted.
Actual result:
--------------
Strict Standards: Only variables should be passed by reference...
PHP Strict Standards: Only variables should be passed by reference...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43070&edit=1