note 103955 added to reflectionclass.getconstructor

From: Date: Fri, 13 May 2011 15:13:02 +0000
Subject: note 103955 added to reflectionclass.getconstructor
Groups: php.notes 
Request: Send a blank email to php-notes+get-179690@lists.php.net to get a copy of this message
Old (PHP 4) constructors also count as contructor: <?php class SomeClass { function SomeClass($some_arg) { } } $refl = new ReflectionClass('SomeClass'); var_dump($refl->isInstantiable()); // bool(true) echo $refl->getConstructor(); /* OUTPUT: Method [ <user, ctor> public method SomeClass ] { @@ /var/www/vhosts/api.autoinkoop.nl/httpdocs/testRefl.php 5 - 6 - Parameters [1] { Parameter #0 [ <required> $some_arg ] } } */ ?> Tested on PHP 5.2.4 ---- Server IP: 213.249.64.162 Probable Submitter: 95.97.107.148 ---- Manual Page -- http://www.php.net/manual/en/reflectionclass.getconstructor.php Edit -- https://master.php.net/note/edit/103955 Del: integrated -- https://master.php.net/note/delete/103955/integrated Del: useless -- https://master.php.net/note/delete/103955/useless Del: bad code -- https://master.php.net/note/delete/103955/bad+code Del: spam -- https://master.php.net/note/delete/103955/spam Del: non-english -- https://master.php.net/note/delete/103955/non-english Del: in docs -- https://master.php.net/note/delete/103955/in+docs Del: other reasons-- https://master.php.net/note/delete/103955 Reject -- https://master.php.net/note/reject/103955 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179690) next »