diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2015-07-05 02:37:49 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2015-07-05 12:16:57 -0500 |
commit | 907476f34c0dbe34e311c4a99cc07eb40fd2954b (patch) | |
tree | 58c26abe27284c5c221182161cb89fdc90cadc1e /ext/session/mod_user.c | |
parent | 550bbf8f4614a5c868010195f562be3e9ee6bb00 (diff) | |
download | php-git-907476f34c0dbe34e311c4a99cc07eb40fd2954b.tar.gz |
Convert E_ERROR to thrown Error in extensions
Diffstat (limited to 'ext/session/mod_user.c')
-rw-r--r-- | ext/session/mod_user.c | 5 |
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; } |