Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37571 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37473 invoked from network); 10 May 2008 11:29:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 May 2008 11:29:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=steph@zend.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=steph@zend.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain zend.com does not designate 64.97.136.171 as permitted sender) X-PHP-List-Original-Sender: steph@zend.com X-Host-Fingerprint: 64.97.136.171 smtpout0171.sc1.he.tucows.com Solaris 8 (1) Received: from [64.97.136.171] ([64.97.136.171:53706] helo=n082.sc1.he.tucows.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/51-26906-E1785284 for ; Sat, 10 May 2008 07:29:35 -0400 Received: from sc1-out04.emaildefenseservice.com (64.97.139.2) by n082.sc1.he.tucows.com (7.2.069.1) id 4769FAD4013CA7E4; Sat, 10 May 2008 11:29:31 +0000 X-SpamScore: 2 X-Spamcatcher-Summary: 2,0,0,6ccb6547ea06f33a,a11297d90bcb5ce7,steph@zend.com,-,RULES_HIT:355:379:539:540:541:542:543:567:599:601:945:968:973:988:989:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1711:1730:1747:1766:1792:2073:2075:2078:2379:2393:2553:2559:2562:2693:2754:2828:3027:3353:3622:3865:3866:3867:3868:3869:3870:3871:3872:3874:4250:4421:5007:6119:6261:7875:7903,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache: 0,MSF:not bulk,SPF:,MSBL:none,DNSBL:none,TSO:0 X-Spamcatcher-Explanation: Received: from foxbox (host86-130-56-54.range86-130.btcentralplus.com [86.130.56.54]) (Authenticated sender: steph.fox) by sc1-out04.emaildefenseservice.com (Postfix) with ESMTP; Sat, 10 May 2008 11:29:31 +0000 (UTC) Message-ID: <007801c8b291$456b2170$4001a8c0@foxbox> Reply-To: "Steph Fox" To: "internals" Cc: "Stanislav Malyshev" References: <021601c8b141$bbf64a50$4001a8c0@foxbox> <7f3ed2c30805081429q239a5d14k1d80e29cbd46acf6@mail.gmail.com> <00f801c8b1c5$942cd960$4001a8c0@foxbox> Date: Sat, 10 May 2008 12:30:36 +0100 Organization: Zend Technologies MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: [PHP-DEV] allow_call_time_pass_reference From: steph@zend.com ("Steph Fox") Folks, >> 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. > > That's exactly the situation we have now - a warning when the INI setting > is changed, for code that by default runs silently. > > And we offer a recommendation to throw that warning in production. That's > the real WTF! > > If call-time pass-by-ref is something that needs to be warned about, warn > by default so everyone will get to see it during development. If it isn't > something that needs to be warned about, why throw a warning at all? Did I hit the wrong season with this? Could someone with karma and history please respond? On investigation, it seems allow_call_time_pass_reference shouldn't be E_DEPRECATED but E_STRICT, assuming it should throw a warning at all. It hasn't been removed in CVS HEAD, there are occasional genuine uses for it, and going by Stas' oblique message earlier in the week there may well be future genuine uses for it too, even if Derick mutters sth off-list about the spawn of Satan. Off by default, off in php.ini-dist, possibly on in php.ini-recommended for BC reasons? It's still the wrong way around. - Steph