bug80564.phpt 285 B

1234567891011121314151617
  1. --TEST--
  2. Bug #80564: ReflectionProperty::__toString() renders current value, not default value
  3. --FILE--
  4. <?php
  5. class A {
  6. public static $x = 'default';
  7. }
  8. A::$x = new stdClass;
  9. $rp = new ReflectionProperty('A', 'x');
  10. echo $rp;
  11. ?>
  12. --EXPECT--
  13. Property [ public static $x = 'default' ]