Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70999 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8993 invoked from network); 4 Jan 2014 10:32:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2014 10:32:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 212.27.42.2 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Linux 2.6 Received: from [212.27.42.2] ([212.27.42.2:55967] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/63-16749-023E7C25 for ; Sat, 04 Jan 2014 05:32:01 -0500 Received: from schrodingerscat.famillecollet.com (unknown [82.241.130.121]) by smtp2-g21.free.fr (Postfix) with ESMTP id EB69D4B0111 for ; Sat, 4 Jan 2014 11:31:53 +0100 (CET) Message-ID: <52C7E318.5070808@fedoraproject.org> Date: Sat, 04 Jan 2014 11:31:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: PHP internals X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Please feedback for Zend bug #66331 ZEND_SEND_PREFER_REF issue trying to overlad From: remi@fedoraproject.org (Remi Collet) See https://bugs.php.net/bug.php?id=66331 With PHPUnit real use cse (trying to mock memcached class) We have more options in Extension land that in user land. Of course if will be great to be able to correctly handle those arginfo mapping in userland, but we have, for now, no way to say "PREFER_REF" in PHP land. So my proposal is to make proto check a little less stric and consider ZEND_SEND_PREFER_REF as ZEND_SEND_REF, so this will allow to override a internal class method (using "prefer") in a php class. Any better idea ? Or could I apply this fix ? Remi.