bug64821.3.phpt 347 B

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