in that case, the documentation on socket_select() needs to be edited: http://www.php.net/socket-select says:
<?php /* Prepare the read array */ $read = array($socket1, $socket2); $num_changed_sockets = socket_select($read, $write = NULL, $except = NULL, 0); if ($num_changed_sockets === false) { /* Error handling */ } else if ($num_changed_sockets > 0) { /* At least at one of the sockets something interesting happened */ } ?> according to you, $write and $except could be undefined, right? - Ron "Johannes Schlueter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > On Monday 24 July 2006 17:52, Rishad Omar wrote: > > getArray($p = array()); > > Here you are relying on undefined behavior. It is not defined wether $p = > array() or the function call getarray($p) should be executed first so the > order might always change. > > You should always use the two lines > $p = array(); > getArray($p); > to be safe. > > johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php