summaryrefslogtreecommitdiff
path: root/ext/session/mod_mm.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-12-05 20:13:35 +0000
committerMarcus Boerger <helly@php.net>2002-12-05 20:13:35 +0000
commitdcfe98882096ac3dd4c1291870f545bd4c21cdf2 (patch)
treefedf1510cdd9806767394dd42215802b297df692 /ext/session/mod_mm.c
parent47b0e79b1a9f82fb21fa67b587ff28722d80ff3a (diff)
downloadphp-git-dcfe98882096ac3dd4c1291870f545bd4c21cdf2.tar.gz
php_error -> php_error_docref
Diffstat (limited to 'ext/session/mod_mm.c')
-rw-r--r--ext/session/mod_mm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/session/mod_mm.c b/ext/session/mod_mm.c
index a555e5d2e0..0853a6b7a8 100644
--- a/ext/session/mod_mm.c
+++ b/ext/session/mod_mm.c
@@ -124,7 +124,9 @@ static ps_sd *ps_sd_new(ps_mm *data, const char *key)
sd = mm_malloc(data->mm, sizeof(ps_sd) + keylen);
if (!sd) {
- php_error(E_WARNING, "mm_malloc failed, avail %d, err %s", mm_available(data->mm), mm_error());
+ TSRMlS_FETCH();
+
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "mm_malloc failed, avail %d, err %s", mm_available(data->mm), mm_error());
return NULL;
}
@@ -359,7 +361,7 @@ PS_WRITE_FUNC(mm)
if (!sd->data) {
ps_sd_destroy(data, sd);
- php_error(E_WARNING, "cannot allocate new data segment");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot allocate new data segment");
sd = NULL;
}
}