Bug #54563 [NEW]: invalid crt parameters on stream_select

From: Date: Mon, 18 Apr 2011 19:03:22 +0000
Subject: Bug #54563 [NEW]: invalid crt parameters on stream_select
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-160264@lists.php.net to get a copy of this message
From: Operating system: windows 7 PHP version: 5.3.6 Package: Streams related Bug Type: Bug Bug description:invalid crt parameters on stream_select 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 bug report at http://bugs.php.net/bug.php?id=54563&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54563&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54563&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54563&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54563&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54563&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54563&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54563&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54563&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54563&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54563&r=support Expected behavior: http://bugs.php.net/fix.php?id=54563&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54563&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54563&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54563&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54563&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54563&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54563&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54563&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54563&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54563&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54563&r=mysqlcfg

« previous php.bugs (#160264) next »