bug64821.1.phpt 414 B

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