bug79193.phpt 303 B

1234567891011121314151617181920
  1. --TEST--
  2. Bug #79193: Incorrect type inference for self::$field =& $field
  3. --EXTENSIONS--
  4. opcache
  5. --FILE--
  6. <?php
  7. class Test {
  8. public static $foo;
  9. public static function method($bar) {
  10. Test::$foo =& $bar;
  11. var_dump(is_int($bar));
  12. }
  13. }
  14. Test::method(1);
  15. ?>
  16. --EXPECT--
  17. bool(true)