From: Dmitry Stogov Date: Fri, 30 Nov 2012 10:14:36 +0000 (+0400) Subject: Fixed bug #63066 (Calling an undefined method in a generator results in a seg fault... X-Git-Tag: php-5.5.0alpha2~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66b8ece02a9592fb70d1ca2990614004858c4e8b;p=php Fixed bug #63066 (Calling an undefined method in a generator results in a seg fault) (fixed with previous commit). --- diff --git a/Zend/tests/generators/bug63066.phpt b/Zend/tests/generators/bug63066.phpt new file mode 100644 index 0000000000..8c4c8b4a84 --- /dev/null +++ b/Zend/tests/generators/bug63066.phpt @@ -0,0 +1,16 @@ +--TEST-- +Bug #63066 (Calling an undefined method in a generator results in a seg fault) +--FILE-- +fatalError(); +} + +foreach(gen(new stdClass()) as $value) + echo $value, "\n"; +--EXPECTF-- +foo + +Fatal error: Call to undefined method stdClass::fatalError() in %sbug63066.php on line 5