bug70982.phpt 355 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #70982 (setStaticPropertyValue behaviors inconsistently with 5.6)
  3. --FILE--
  4. <?php
  5. class Foo {
  6. static $abc;
  7. function __construct()
  8. {
  9. var_dump(self::$abc);
  10. }
  11. }
  12. class Bar extends Foo {
  13. }
  14. $rf = new ReflectionClass('Bar');
  15. $rf->setStaticPropertyValue('abc', 'hi');
  16. $foo = $rf->newInstance();
  17. ?>
  18. --EXPECT--
  19. string(2) "hi"