Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24947 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25062 invoked by uid 1010); 24 Jul 2006 19:25:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25046 invoked from network); 24 Jul 2006 19:25:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2006 19:25:37 -0000 X-Host-Fingerprint: 83.160.219.156 korving.demon.nl Received: from ([83.160.219.156:26031] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id D4/C7-04178-EF915C44 for ; Mon, 24 Jul 2006 15:05:35 -0400 Message-ID: To: internals@lists.php.net References: <44C4ECC6.8080401@kaluma.com> <200607241916.27024.johannes@php.net> Date: Mon, 24 Jul 2006 21:02:40 +0200 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 83.160.219.156 Subject: Re: [PHP-DEV] Pass by reference (5.1.1 vs 5.1.2) From: r.korving@xit.nl ("Ron Korving") in that case, the documentation on socket_select() needs to be edited: http://www.php.net/socket-select says: 0) { /* At least at one of the sockets something interesting happened */ } ?> according to you, $write and $except could be undefined, right? - Ron "Johannes Schlueter" wrote in message news:200607241916.27024.johannes@php.net... > 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