File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
lang /
bug26866.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 5 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: Bug #26866 (segfault when exception raised in __get)
3: --FILE--
4: <?php
5: class bar {
6: function get_name() {
7: return 'bar';
8: }
9: }
10: class foo {
11: function __get($sName) {
12: throw new Exception('Exception!');
13: return new bar();
14: }
15: }
16: $foo = new foo();
17: try {
18: echo $foo->bar->get_name();
19: }
20: catch (Exception $E) {
21: echo "Exception raised!\n";
22: }
23: ?>
24: --EXPECT--
25: Exception raised!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>