--TEST-- GH-12856 (ReflectionClass::getStaticPropertyValue() returns UNDEF zval for uninitialized typed properties) --FILE-- getStaticPropertyValue('untyped')); try { var_dump($rc->getStaticPropertyValue('typed1')); } catch (Error $e) { echo $e->getMessage(), "\n"; } var_dump($rc->getStaticPropertyValue('typed1', 1)); var_dump($rc->getStaticPropertyValue('typed2')); ?> --EXPECT-- NULL Typed property Bug::$typed1 must not be accessed before initialization int(1) int(3)