Your IP : 216.73.216.48


Current Path : /hdd/hdd21/main/php5/php-5.6.6/tests/lang/
Upload File :
Current File : //hdd/hdd21/main/php5/php-5.6.6/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!