Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37553 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16959 invoked from network); 8 May 2008 21:29:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 May 2008 21:29:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.171 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.200.171 wf-out-1314.google.com Received: from [209.85.200.171] ([209.85.200.171:65186] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/F4-23700-0A073284 for ; Thu, 08 May 2008 17:29:05 -0400 Received: by wf-out-1314.google.com with SMTP id 26so872976wfd.26 for ; Thu, 08 May 2008 14:29:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=OVsv9gWf5VufXjV4L+U9ZT5xxQm6nWPqy14yrdLoRuA=; b=IAKA5eHsF14+bDftBqK66+1L1Am/HnJzZRJ/xp0qxGBaZnTuTOzsLf5Uzk9j+f6+YUlIYb4Sk9tBLRL5xY+8VSAs/SJMug7rAS9m202d302y3HhX1ZfI5uHqg5A+pREFhAq7q/K5x5tSkeYQi5s9vdY9bcYYLKwjihIVXUpm5/Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E2ayg4ejxy++oAl/seg9azeWxdY4YSPGPduTksbVG2UHfplm38wf6p14180rIIt+cz8nKW3MnKXTOE6RieLIzgtHKrMVg9CmGPzUJ/52jZolTx1JaWFI08asecay8B3l4+Je8t6UWowG7IKFuFeQUPb7pz2lwH2S27K10Z+7x/E= Received: by 10.142.102.5 with SMTP id z5mr1613006wfb.85.1210282142252; Thu, 08 May 2008 14:29:02 -0700 (PDT) Received: by 10.142.170.21 with HTTP; Thu, 8 May 2008 14:29:02 -0700 (PDT) Message-ID: <7f3ed2c30805081429q239a5d14k1d80e29cbd46acf6@mail.gmail.com> Date: Thu, 8 May 2008 23:29:02 +0200 To: "Steph Fox" Cc: internals In-Reply-To: <021601c8b141$bbf64a50$4001a8c0@foxbox> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <021601c8b141$bbf64a50$4001a8c0@foxbox> Subject: Re: [PHP-DEV] allow_call_time_pass_reference From: hannes.magnusson@gmail.com ("Hannes Magnusson") On Thu, May 8, 2008 at 9:28 PM, Steph Fox wrote: > Does anyone have a good reason for keeping it switched on by default in PHP > 5.3? Like, would switching it off by default break a lot of existing code, > given that most users are a bit beyond PHP 3 now? I've never understood the warning that switch throws: bjori@lindsay:~$ php -dallow_call_time_pass_reference=0 -r 'strpos(&$var, 0);' Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of strpos(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in Command line code on line 1 However, turning it on will not throw any warning or deprecated notice, wtf? I'd say throw the warning if the switch is on and someone does call-time-pass-by-reference and turn that switch off by default. -Hannes