summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-12-05 21:46:08 +0000
committerMarcus Boerger <helly@php.net>2002-12-05 21:46:08 +0000
commit8ed84254cd943893e1deb99263e2cc46a9dcc9e3 (patch)
treecd1746752e45f2ddb60a8315a21b1e20004832df /main/SAPI.c
parentad65d01cbefff24b92da5576ca63f026018f3b33 (diff)
downloadphp-git-8ed84254cd943893e1deb99263e2cc46a9dcc9e3.tar.gz
-php_error -> php_error_docref
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 6ebd98e7ce..4a3db9ec70 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -186,7 +186,7 @@ SAPI_API SAPI_POST_READER_FUNC(sapi_read_standard_form_data)
int allocated_bytes=SAPI_POST_BLOCK_SIZE+1;
if (SG(request_info).content_length > SG(post_max_size)) {
- php_error(E_WARNING, "POST Content-Length of %d bytes exceeds the limit of %d bytes",
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "POST Content-Length of %d bytes exceeds the limit of %d bytes",
SG(request_info).content_length, SG(post_max_size));
return;
}
@@ -199,7 +199,7 @@ SAPI_API SAPI_POST_READER_FUNC(sapi_read_standard_form_data)
}
SG(read_post_bytes) += read_bytes;
if (SG(read_post_bytes) > SG(post_max_size)) {
- php_error(E_WARNING, "Actual POST length does not match Content-Length, and exceeds %d bytes", SG(post_max_size));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Actual POST length does not match Content-Length, and exceeds %d bytes", SG(post_max_size));
return;
}
if (read_bytes < SAPI_POST_BLOCK_SIZE) {