--TEST-- ReflectionClass::getConstants() --FILE-- getConstant('a')); var_dump($rc->getConstant('doesntexist')); } ?> --EXPECTF-- Reflecting on class C: unicode(12) "hello from C" bool(false) Reflecting on class D: unicode(12) "hello from C" bool(false) Reflecting on class E: unicode(12) "hello from C" bool(false) Reflecting on class F: unicode(12) "hello from F" bool(false) Reflecting on class X: bool(false) bool(false)