note 115113 added to function.stream-set-timeout

From: Date: Tue, 27 May 2014 20:25:05 +0000
Subject: note 115113 added to function.stream-set-timeout
Groups: php.notes 
Request: Send a blank email to php-notes+get-199635@lists.php.net to get a copy of this message
Just in case someone stumbles into my situation... I was trying to get the microseconds part to work and it just wasn't working as expected. Assuming blocking mode is true and I use <?php stream_set_timeout($s, 1, 0);?> I get a 1s delay as expected. However when I do <?php stream_set_timeout($s, 0, 500);?> I expect a 500microsecond delay but I get no delays at all. However when i do this <?php stream_set_timeout($s, 0, 500000);?> I get a 500 microsecond delay which is what I was expecting ---- Server IP: 200.46.208.56 Probable Submitter: 201.227.90.146 ---- Manual Page -- http://php.net/manual/en/function.stream-set-timeout.php Edit -- https://master.php.net/note/edit/115113 Del: integrated -- https://master.php.net/note/delete/115113/integrated Del: useless -- https://master.php.net/note/delete/115113/useless Del: bad code -- https://master.php.net/note/delete/115113/bad+code Del: spam -- https://master.php.net/note/delete/115113/spam Del: non-english -- https://master.php.net/note/delete/115113/non-english Del: in docs -- https://master.php.net/note/delete/115113/in+docs Del: other reasons-- https://master.php.net/note/delete/115113 Reject -- https://master.php.net/note/reject/115113 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199635) next »