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