summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index b7c793c4b1..b9ae4d1c85 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -2113,7 +2113,7 @@ ZEND_METHOD(reflection_generator, __construct)
ex = ((zend_generator *) Z_OBJ_P(generator))->execute_data;
if (!ex) {
- zend_throw_exception(NULL, "Cannot create ReflectionGenerator based on a terminated Generator", 0);
+ _DO_THROW("Cannot create ReflectionGenerator based on a terminated Generator");
return;
}
@@ -2125,7 +2125,7 @@ ZEND_METHOD(reflection_generator, __construct)
#define REFLECTION_CHECK_VALID_GENERATOR(ex) \
if (!ex) { \
- zend_throw_exception(NULL, "Cannot fetch information from a terminated Generator", 0); \
+ _DO_THROW("Cannot fetch information from a terminated Generator"); \
return; \
}