Skip to content

Commit 9ebd938

Browse files
committed
Fixed Generator::throw()
1 parent 018be97 commit 9ebd938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_generators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ ZEND_METHOD(Generator, throw)
541541
return;
542542
}
543543

544-
ZVAL_COPY_VALUE(&exception_copy, exception);
544+
ZVAL_DUP(&exception_copy, exception);
545545

546546
generator = (zend_generator *) Z_OBJ_P(getThis());
547547

0 commit comments

Comments
 (0)