Bug #54563 [Opn->Csd]: invalid crt parameters on stream_select
| From: | cmb@php.net | Date: | Wed, 20 Sep 2017 16:03:37 +0000 |
| Subject: | Bug #54563 [Opn->Csd]: invalid crt parameters on stream_select | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-211273@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54563&edit=1
ID: 54563
Updated by: cmb@php.net
Reported by: alex at phpguide dot co dot il
Summary: invalid crt parameters on stream_select
-Status: Open
+Status: Closed
Type: Bug
Package: Streams related
Operating System: windows 7
PHP Version: 5.3.6
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> This problem has been fixed since PHP 5.3.9.
>
> https://github.com/php/php-src/commit/fb53dd80d841e8465aba29ac057172e659369112
So this ticket can be closed.
Previous Comments:
------------------------------------------------------------------------
[2015-06-29 10:57:32] miau dot jp at gmail dot com
This problem has been fixed since PHP 5.3.9.
https://github.com/php/php-src/commit/fb53dd80d841e8465aba29ac057172e659369112
------------------------------------------------------------------------
[2011-09-01 15:15:13] boen dot robot at gmail dot com
I have the same issue with Windows Server 2008 R2, PHP 5.3.8.
------------------------------------------------------------------------
[2011-06-06 14:41:55] jinmoku at hotmail dot com
I'have the same issue with this simple code :
$sock = fsockopen('127.0.0.1',80);
$e = array($sock);
$w = $r = null;
while(stream_select($r, $w, $e, 0));
------------------------------------------------------------------------
[2011-04-18 21:03:21] alex at phpguide dot co dot il
Description:
------------
Apparently there are some errors selecting streams on windows platforms
when calling some native win functions.
linux wouldnt reproduce
5.3.6 vc9
Test script:
---------------
<?PHP
$errno = null;
$errstr = null;
$timeout = 5;
$conflag = STREAM_CLIENT_CONNECT;
$stream = stream_socket_client("tcp://jabber.org:5222", $errno, $errstr, $timeout,
$conflag);
var_dump($stream); echo $errno, $errstr;
$r = array($stream);
$w = array(fopen('fakestream.txt', 'r')); // both file exist
$e = array(fopen('fakestream.txt2', 'r'));
$enull = $wnull = array();
// execute seperately
//$update = stream_select ( $r , $wnull, $enull , 5, 0 );
$update2 = stream_select( $r , $w, $e, 5, 0 );
Expected result:
----------------
no errors
Actual result:
--------------
Warning: Invalid CRT parameters detected in crtwtf.php on line 17/18
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54563&edit=1