Re: 5.3 compile time still depends on runtime constants ("Default value for parameters with a class type hint can only be NULL")
| From: | Stanislav Malyshev | Date: | Fri, 12 Dec 2008 07:35:05 +0000 |
| Subject: | Re: 5.3 compile time still depends on runtime constants ("Default value for parameters with a class type hint can only be NULL") | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42222@lists.php.net to get a copy of this message | ||
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