Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42222 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65190 invoked from network); 12 Dec 2008 07:35:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2008 07:35:13 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.116 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.116 us-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [63.205.162.116] ([63.205.162.116:44131] helo=us-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/55-36388-03412494 for ; Fri, 12 Dec 2008 02:35:13 -0500 Received: from [192.168.27.15] ([192.168.27.15]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 11 Dec 2008 23:35:35 -0800 Message-ID: <49421429.20303@zend.com> Date: Fri, 12 Dec 2008 09:35:05 +0200 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: phpxcache CC: PHP Developers Mailing List References: <28139bc0812112121v2263ec2am1e603bf008bb1ecf@mail.gmail.com> In-Reply-To: <28139bc0812112121v2263ec2am1e603bf008bb1ecf@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Dec 2008 07:35:37.0258 (UTC) FILETIME=[39AAC8A0:01C95C2C] Subject: Re: [PHP-DEV] 5.3 compile time still depends on runtime constants ("Default value for parameters with a class type hint can only be NULL") From: stas@zend.com (Stanislav Malyshev) Hi! > (gdb) p Z_STRVAL(initialization->u.constant) > "My\\NS\\null" > this is the reason. looks likestrcasecmp is not enough here at compile > time. or you could just handle abc(array $a = null) as a special case? Looks like a bug, could you submit a bug report (with reproducing code) to bugs.php.net? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com