note 84763 modified in language.oop5.reflection by danbrown
| From: | danbrown@php.net | Date: | Wed, 16 Sep 2009 16:11:53 +0000 |
| Subject: | note 84763 modified in language.oop5.reflection by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160710@lists.php.net to get a copy of this message | ||
Be aware that calling the method newInstanceArgs with an empty array will still call the constructor
with no arguments. If the class has no constructor then it will generate an exception.
You need to check if a constructor exists before calling this method or use try and catch to act on
the exception.
--was--
Be aware that calling the method newInstanceArgs with an empty array will still call the constructor
with no arguments. If the class has no constructor then it will generate an exception.
You need to check if a constructor exists before calling this method or use try and catch to act on
the exception.
http://php.net/manual/en/language.oop5.reflection.php