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