diff options
author | Dmitry Stogov <dmitry@php.net> | 2011-12-05 09:20:12 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2011-12-05 09:20:12 +0000 |
commit | 30328dcbab7c8cf86a0e2c89455e275dd0a9d08d (patch) | |
tree | 09597f67fe7c4effebb1b26fb25b838fbf956135 /Zend/tests/bug60444.phpt | |
parent | 73edbe5a229cac57bd9bc1a09c0caadf8864ee64 (diff) | |
download | php-git-30328dcbab7c8cf86a0e2c89455e275dd0a9d08d.tar.gz |
Fixed bug #60444 (Segmentation fault with include & class extending)
Diffstat (limited to 'Zend/tests/bug60444.phpt')
-rw-r--r-- | Zend/tests/bug60444.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/bug60444.phpt b/Zend/tests/bug60444.phpt new file mode 100644 index 0000000000..38f81bc413 --- /dev/null +++ b/Zend/tests/bug60444.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #60444 (Segmentation fault with include & class extending) +--FILE-- +<?php +class Foo { + public function __construct() { + eval("class Bar extends Foo {}"); + Some::foo($this); + } +} +class Some { + public static function foo(Foo $foo) { + } +} +new Foo; +echo "done\n"; +--EXPECT-- +done |