objects_026.phpt 190 B

12345678910111213
  1. --TEST--
  2. Using $this when out of context
  3. --FILE--
  4. <?php
  5. try {
  6. $this->a = 1;
  7. } catch (Exception $e) {
  8. }
  9. ?>
  10. --EXPECTF--
  11. Fatal error: Using $this when not in object context in %s on line %d