property_guard_hash_val.phpt 261 B

12345678910111213141516
  1. --TEST--
  2. Test property guard hash value assumption
  3. --FILE--
  4. <?php
  5. class Test {
  6. function __get($var) {
  7. return $this->{$var.''};
  8. }
  9. }
  10. $test = new Test;
  11. var_dump($test->x);
  12. ?>
  13. --EXPECTF--
  14. Warning: Undefined property: Test::$x in %s on line %d
  15. NULL