Fixed Generator::throw()

This commit is contained in:
Dmitry Stogov 2014-03-06 00:45:53 +04:00
parent 018be97c0d
commit 9ebd9388ee

View file

@ -541,7 +541,7 @@ ZEND_METHOD(Generator, throw)
return;
}
ZVAL_COPY_VALUE(&exception_copy, exception);
ZVAL_DUP(&exception_copy, exception);
generator = (zend_generator *) Z_OBJ_P(getThis());