Edit report at http://bugs.php.net/bug.php?id=54563&edit=1

 ID:                 54563
 Comment by:         jinmoku at hotmail dot com
 Reported by:        alex at phpguide dot co dot il
 Summary:            invalid crt parameters on stream_select
 Status:             Open
 Type:               Bug
 Package:            Streams related
 Operating System:   windows 7
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

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));


Previous Comments:
------------------------------------------------------------------------
[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 http://bugs.php.net/bug.php?id=54563&edit=1

Reply via email to