dis-bench / src /php /php-src /Zend /tests /exceptions /bug64821.2.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
318 Bytes
--TEST--
Bug #64821 Custom Exceptions crash when internal properties overridden (variation 2)
--FILE--
<?php
class a extends exception {
public function __construct() {
$this->line = 0;
}
}
throw new a;
?>
--EXPECTF--
Fatal error: Uncaught a in %s:0
Stack trace:
#0 {main}
thrown in %s on line %d