summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorAaron Piotrowski <aaron@trowski.com>2016-06-11 12:07:28 -0500
committerAaron Piotrowski <aaron@trowski.com>2016-06-13 09:02:17 -0500
commit771e5cc24716304dd2bf8cbd8aec11d465965d0a (patch)
treecf85742ca6a5810f284f62902f9dc7efc756a663 /ext/standard/basic_functions.c
parente3c681aa5cc71122a8d2fae42e6513fc413ccac8 (diff)
downloadphp-git-771e5cc24716304dd2bf8cbd8aec11d465965d0a.tar.gz
Replace zend_ce_error with NULL and replace more E_ERROR with thrown Error
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 5fb5246d92..3a9341dd62 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -4825,7 +4825,8 @@ PHP_FUNCTION(forward_static_call)
}
if (!EX(prev_execute_data)->func->common.scope) {
- zend_error(E_ERROR, "Cannot call forward_static_call() when no class scope is active");
+ zend_throw_error(NULL, "Cannot call forward_static_call() when no class scope is active");
+ return;
}
fci.retval = &retval;