Re: com php-src: Fixed bug that can not get default value of parameter if it's not `optional`: ext/reflection/php_reflection.c
ext/reflection/tests/ReflectionParameter_DefaultValueConstant_error.phpt ext/reflection/tests/bug62715.phpt
| From: | Xinchen Hui | Date: | Fri, 03 Aug 2012 01:30:16 +0000 |
| Subject: | Re: com php-src: Fixed bug that can not get default value of parameter if it's not `optional`: ext/reflection/php_reflection.c ext/reflection/tests/ReflectionParameter_DefaultValueConstant_error.phpt ext/reflection/tests/bug62715.phpt |
||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-69764@lists.php.net to get a copy of this message | ||
thinking of
Function foo($a = 1, $b)
I agree this is kind of wrong usage. But that is allowed
Thanks
发自我的 iPad
在 2012-8-3,1:35,Stas Malyshev <smalyshev@sugarcrm.com> 写道:
> Hi!
>
>> Commit: 170ee90bf962d288bdcf6cf0c8c4a2a30c5c1ba2
>> Author: Xinchen Hui <laruence@php.net> Thu, 2 Aug 2012 22:28:04 +0800
>> Parents: 3b5defd3b09bf827239087126261ce9abdc13d09
>> Branches: PHP-5.4
>>
>> Link:
>> http://git.php.net/?p=php-src.git;a=commitdiff;h=170ee90bf962d288bdcf6cf0c8c4a2a30c5c1ba2
>>
>> Log:
>> Fixed bug that can not get default value of parameter if it's not
>>
optional
>
> What you mean here? Optional parameters are those that have default
> values, not?
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
> (408)454-6900 ext. 227