# ReflectionProperty::getValue() -> UNKNOWN:0

- Thread: https://externals.io/message/15283
- Original archive: https://news-web.php.net/php.internals/15283
- Started by Timm Friebe on 2005-03-06T12:17:34+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #15283 — Timm Friebe — 2005-03-06T12:17:34+00:00

URL: https://externals.io/message/15283#15283

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
