-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/tests/lang/
File Upload :
Current File : //usr/src/php/tests/lang/bug26866.phpt

--TEST--
Bug #26866 (segfault when exception raised in __get)
--FILE--
<?php
class bar {
	function get_name() {
		return 'bar';
	}
}
class foo {
	function __get($sName) {
		throw new Exception('Exception!');
		return new bar();
	}
}
$foo = new foo();
try {
	echo $foo->bar->get_name();
}
catch (Exception $E) {
	echo "Exception raised!\n";
}
?>
--EXPECT--
Exception raised!

Copyright © 2017 || Recoded By Mr.Bumblebee