ReflectionProperty::getValue() -> UNKNOWN:0
| From: | Timm Friebe | Date: | Sun, 06 Mar 2005 12:17:34 +0000 |
| Subject: | ReflectionProperty::getValue() -> UNKNOWN:0 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-15283@lists.php.net to get a copy of this message | ||
Hi,
the following script:
<?php
class Singleton {
public static $instance = NULL;
}
$c= new ReflectionClass('Singleton');
var_dump($c->getProperty('instance')->getValue());
?>
prints "UNKNOWN:0" - expected behaviour would be to print "NULL".
Attached is a diff against zend_reflection_api.c which fixes this.
--
Timm
If it ain't broken, it doesn't have enough features yet
Attachment: [text/x-patch] reflection.diff
Attachment: [text/x-patch] reflection.diff