note 99517 added to reflectionclass.newinstanceargs
| From: | sausage at tehsausage dot com | Date: | Sat, 21 Aug 2010 11:14:59 +0000 |
| Subject: | note 99517 added to reflectionclass.newinstanceargs | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171910@lists.php.net to get a copy of this message | ||
Annoyingly, this will throw an exception for classes with no constructor even if you pass an empty
array for the arguments. For generic programming you should avoid this function and use
call_user_func_array with newInstance.
----
Server IP: 117.55.229.1
Probable Submitter: 115.131.205.67
----
Manual Page -- http://www.php.net/manual/en/reflectionclass.newinstanceargs.php
Edit -- https://master.php.net/note/edit/99517
Del: integrated -- https://master.php.net/note/delete/99517/integrated
Del: useless -- https://master.php.net/note/delete/99517/useless
Del: bad code -- https://master.php.net/note/delete/99517/bad+code
Del: spam -- https://master.php.net/note/delete/99517/spam
Del: non-english -- https://master.php.net/note/delete/99517/non-english
Del: in docs -- https://master.php.net/note/delete/99517/in+docs
Del: other reasons-- https://master.php.net/note/delete/99517
Reject -- https://master.php.net/note/reject/99517
Search -- https://master.php.net/manage/user-notes.php