bug64821.2.phpt 324 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #64821 Custom Exceptions crash when internal properties overridden (variation 2)
  3. --FILE--
  4. <?php
  5. class a extends exception {
  6. public function __construct() {
  7. $this->line = array();
  8. }
  9. }
  10. throw new a;
  11. ?>
  12. --EXPECTF--
  13. Fatal error: Uncaught exception 'a' in %s:0
  14. Stack trace:
  15. #0 {main}
  16. thrown in %s on line %d