note 96115 added to reflectionparameter.isoptional
| From: | artkurapov at gmail dot com | Date: | Tue, 09 Feb 2010 15:26:31 +0000 |
| Subject: | note 96115 added to reflectionparameter.isoptional | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165800@lists.php.net to get a copy of this message | ||
Lets say you have method defined
function read_me( a,b,c=1,d,e=2,f=3){}
then reading argument "c" to be optional, it will actually give you false (or nothing at
all). This is probably a bug that counts number of required arguments, assuming you have put all
optional to the end.
----
Server IP: 69.147.83.197
Probable Submitter: 90.190.41.205
----
Manual Page -- http://www.php.net/manual/en/reflectionparameter.isoptional.php
Edit -- https://master.php.net/note/edit/96115
Del: integrated -- https://master.php.net/note/delete/96115/integrated
Del: useless -- https://master.php.net/note/delete/96115/useless
Del: bad code -- https://master.php.net/note/delete/96115/bad+code
Del: spam -- https://master.php.net/note/delete/96115/spam
Del: non-english -- https://master.php.net/note/delete/96115/non-english
Del: in docs -- https://master.php.net/note/delete/96115/in+docs
Del: other reasons-- https://master.php.net/note/delete/96115
Reject -- https://master.php.net/note/reject/96115
Search -- https://master.php.net/manage/user-notes.php