Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38253 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2830 invoked from network); 15 Jun 2008 13:09:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2008 13:09:44 -0000 Authentication-Results: pb1.pair.com header.from=steph@phparch.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=steph@phparch.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain phparch.com from 64.99.136.187 cause and error) X-PHP-List-Original-Sender: steph@phparch.com X-Host-Fingerprint: 64.99.136.187 smtprelay-virgin0187.hostedemail.com Linux 2.5 (sometimes 2.4) (4) Received: from [64.99.136.187] ([64.99.136.187:54217] helo=smtprelay-virgin.hostedemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/0F-06776-69415584 for ; Sun, 15 Jun 2008 09:09:44 -0400 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay06.hostedemail.com (Postfix) with SMTP id 5CFE663879; Sun, 15 Jun 2008 13:09:40 +0000 (UTC) X-SpamScore: 1 Received: from foxbox (host86-143-244-1.range86-143.btcentralplus.com [86.143.244.1]) (Authenticated sender: steph.fox) by omf13.hostedemail.com (Postfix) with ESMTP; Sun, 15 Jun 2008 13:09:39 +0000 (UTC) Message-ID: <008b01c8cee9$424af690$4401a8c0@foxbox> Reply-To: "Steph Fox" To: "internals" Cc: "Dmitry Stogov" , "Johannes Schlueter" References: <007c01c8cee6$8fd5c2d0$4401a8c0@foxbox> Date: Sun, 15 Jun 2008 14:10:59 +0100 Organization: php|architect MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; 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 X-session-marker: 73746570682E666F78 X-Spam-Summary: 2,0,0,91d4115b05c35bda,29bcc7bf61db11fc,steph@phparch.com,,RULES_HIT:152:355:379:539:540:541:542:543:567:599:600:601:800:960:967:973:980:988:989:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1676:1711:1730:1747:1766:1792:2073:2075:2078:2379:2393:2525:2551:2553:2559:2563:2682:2685:2857:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3280:3352:3865:3866:3867:3869:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:4250:4605:4886:5007:6119:6120:6261:7576:7679:7875:7903:8660,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:none,DNSBL:none Subject: Re: [PHP-DEV] Back to call_time_pass_reference - backport PHP 6 behaviour? From: steph@phparch.com ("Steph Fox") That wasn't very clear, sorry... The logic in HEAD gives nice, sane warnings. The logic in 5_3 gives the same warning for everything, e.g: Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func()... It just doesn't make a lot of sense to keep a warning that tells users to modify the declaration of internal functions, IMHO. - Steph ----- Original Message ----- From: "Steph Fox" To: "internals" Cc: "Dmitry Stogov" ; "Johannes Schlueter" Sent: Sunday, June 15, 2008 1:51 PM Subject: [PHP-DEV] Back to call_time_pass_reference - backport PHP 6 behaviour? > > > Hi all, > > I just noticed (don't ask) there are a couple of checks in > zend_do_pass_param() in CVS HEAD that don't exist in PHP_5_3: > > if (original_op==ZEND_SEND_REF) { > if (function_ptr && > function_ptr->common.function_name.v && > function_ptr->common.type == ZEND_USER_FUNCTION && > !ARG_SHOULD_BE_SENT_BY_REF(function_ptr, (zend_uint) offset)) { > zend_error(E_DEPRECATED, > "Call-time pass-by-reference has been deprecated; "... > > Is there any chance of back-porting the common.type check to 5_3? > > - Steph > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > >