summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/php_spl.c')
-rw-r--r--ext/spl/php_spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index e89caa2059..7cb6661033 100644
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -356,7 +356,7 @@ PHP_FUNCTION(spl_autoload)
ex->opline->opcode != ZEND_NEW) {
zend_throw_exception_ex(spl_ce_LogicException, 0, "Class %s could not be loaded", ZSTR_VAL(class_name));
} else {
- php_error_docref(NULL, E_ERROR, "Class %s could not be loaded", ZSTR_VAL(class_name));
+ zend_throw_error(zend_ce_error, "Class %s could not be loaded", ZSTR_VAL(class_name));
}
}
} /* }}} */