Commit:    66b8ece02a9592fb70d1ca2990614004858c4e8b
Author:    Dmitry Stogov <dmi...@zend.com>         Fri, 30 Nov 2012 14:14:36 
+0400
Parents:   70f83f35d089d0cafae12ae231a38541f5c8e41c
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=66b8ece02a9592fb70d1ca2990614004858c4e8b

Log:
Fixed bug #63066 (Calling an undefined method in a generator results in a seg 
fault) (fixed with previous commit).

Bugs:
https://bugs.php.net/63066

Changed paths:
  A  Zend/tests/generators/bug63066.phpt


Diff:
diff --git a/Zend/tests/generators/bug63066.phpt 
b/Zend/tests/generators/bug63066.phpt
new file mode 100644
index 0000000..8c4c8b4
--- /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--
+<?php
+function gen($o)
+{
+       yield 'foo';
+       $o->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


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to