note 82383 deleted from language.oop5.reflection by danbrown

From: Date: Wed, 16 Sep 2009 16:13:16 +0000
Subject: note 82383 deleted from language.oop5.reflection by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160713@lists.php.net to get a copy of this message
Note Submitter: Niels Jaeckel ---- I think there are still some limitations in the reflection abilities: * ReflectionClass :: getConstants() returns an associative array with the constants and their values inside. I don't understand, why they don't use an object there, too (e.g. ReflectionConstant). The final effect is, that you aren't able to read out the DocComment of constants. * There is no nice way to access the default values of properties. You can workaround a bit with get_class_vars(), but this just returns the values of public properties. No way to access protected or even private properties. * PHP 5 has a nice feature called type hinting. This is completely omitted. You may ask, if a certain parameter is an array, but you won't get the denoted type hint. Maybe this is, or will be extended. I hope so. hth, Niels

« previous php.notes (#160713) next »