summaryrefslogtreecommitdiff
path: root/ext/session/session.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-01-19 00:45:53 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-01-19 00:45:53 +0000
commit3d8e54f3a2f72eeaf22a5ffd66a7e5465f60127c (patch)
tree1784e782a671b83758c0c836088026f73897c0ef /ext/session/session.c
parentadd3ec4e0ba076db7cdece4bfdb852b8333e198d (diff)
downloadphp-git-3d8e54f3a2f72eeaf22a5ffd66a7e5465f60127c.tar.gz
Changed php_error to php_error_docref.
Diffstat (limited to 'ext/session/session.c')
-rw-r--r--ext/session/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index a7d30ea65e..c7c5c835f5 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -631,7 +631,7 @@ char *php_session_create_id(PS_CREATE_SID_ARGS)
digest_len = 20;
break;
default:
- php_error(E_ERROR, "Invalid session hash function");
+ php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid session hash function");
efree(buf);
return NULL;
}
@@ -676,7 +676,7 @@ char *php_session_create_id(PS_CREATE_SID_ARGS)
|| PS(hash_bits_per_character) > 6) {
PS(hash_bits_per_character) = 4;
- php_error(E_WARNING, "The ini setting hash_bits_per_character is out of range (should be 4, 5, or 6) - using 4 for now");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "The ini setting hash_bits_per_character is out of range (should be 4, 5, or 6) - using 4 for now");
}
j = bin_to_readable(digest, digest_len, buf, PS(hash_bits_per_character)) - buf;