Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79432 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89958 invoked from network); 4 Dec 2014 23:14:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Dec 2014 23:14:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.174 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.174 mail-ob0-f174.google.com Received: from [209.85.214.174] ([209.85.214.174:63592] helo=mail-ob0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/43-61462-9DAE0845 for ; Thu, 04 Dec 2014 18:14:34 -0500 Received: by mail-ob0-f174.google.com with SMTP id nt9so7407906obb.33 for ; Thu, 04 Dec 2014 15:14:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=QxmZiER2Py9ZMnAbUc3m4ovXxEahRO/tT/gOz5yWhGU=; b=b66IVYU78CuCpeQcfrxe5AHBpUnRg/SimSsMVI6Yp4sIJr4cfmPgSwHfnJ99HUgiOb /WgHj8N5C3g3FucWh06xgTphv3TKrC/NDVg5YOaG/EnbLKD7sSmcNkopFTWRPUUyrh5A ZI03VeVrsIyExeMW7MRXnBgwuAyCHcrb4RdyEBcxMech4YVwbxzIMWtPUyjbEmcm6l8d iNmkbLjkEYuPI7neLTRpX1r7hQ3UJTwD84mMf1xTRJhj7gIiErUfheFBQUpglsMKt2DF mx26HYaFI+JRpiNZAZ8dgKX4bDptAq21lZVrIIuZeOmpAWSxh17Gy8M5TkOH1mGGuXjp n/sg== MIME-Version: 1.0 X-Received: by 10.60.155.195 with SMTP id vy3mr6366495oeb.62.1417734871185; Thu, 04 Dec 2014 15:14:31 -0800 (PST) Sender: morrison.levi@gmail.com Received: by 10.76.89.237 with HTTP; Thu, 4 Dec 2014 15:14:31 -0800 (PST) In-Reply-To: References: Date: Thu, 4 Dec 2014 16:14:31 -0700 X-Google-Sender-Auth: 9kWyQcCex3Q7-JpO91yaSfYiYPM Message-ID: To: Yasuo Ohgaki Cc: Andrea Faulds , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: Only variables can be passed by reference From: levim@php.net (Levi Morrison) > Even when there is parameter to pass, user has to create variable always. > > select_select([$a], [$b], [$c], 10); > > fails with E_ERROR, while > > $x = [$a]; > $y = [$b]; > $z = [$c]; > stream_select($x, $y, $z, 10); > > works, but It does not look nice. From the documentation: "Also do not forget that those arrays are passed by reference and will be modified after stream_select() returns." These modify by reference; ignoring this is almost *certainly* a bug on your part.