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