summaryrefslogtreecommitdiff
path: root/ext/session/mod_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/mod_user.c')
-rw-r--r--ext/session/mod_user.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c
index 1196d867af..1f3a4e5e93 100644
--- a/ext/session/mod_user.c
+++ b/ext/session/mod_user.c
@@ -20,6 +20,7 @@
#include "php.h"
#include "php_session.h"
+#include "zend_exceptions.h"
#include "mod_user.h"
ps_module ps_mod_user = {
@@ -191,12 +192,12 @@ PS_CREATE_SID_FUNC(user)
}
zval_ptr_dtor(&retval);
} else {
- php_error_docref(NULL, E_ERROR, "No session id returned by function");
+ zend_throw_error(zend_ce_error, "No session id returned by function");
return NULL;
}
if (!id) {
- php_error_docref(NULL, E_ERROR, "Session id must be a string");
+ zend_throw_error(zend_ce_error, "Session id must be a string");
return NULL;
}