summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-12-05 23:19:02 +0000
committerMarcus Boerger <helly@php.net>2002-12-05 23:19:02 +0000
commita27d6d90ec8681aa248b03f96f95e505cea66aad (patch)
tree0a8dc32b6af7137c33b412b7edf48da8ed110d55 /sapi
parent89d758c37867decc97a4050a9b4ea2ca5b8714d5 (diff)
downloadphp-git-a27d6d90ec8681aa248b03f96f95e505cea66aad.tar.gz
MFH
Diffstat (limited to 'sapi')
-rw-r--r--sapi/apache/php_apache.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c
index ba9b0aa94e..1d64f2e53e 100644
--- a/sapi/apache/php_apache.c
+++ b/sapi/apache/php_apache.c
@@ -115,11 +115,11 @@ PHP_FUNCTION(apache_child_terminate)
ap_child_terminate( ((request_rec *)SG(server_context)) );
RETURN_TRUE;
} else { /* tell them to get lost! */
- php_error(E_WARNING, "apache.child_terminate is disabled");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "apache.child_terminate is disabled");
RETURN_FALSE;
}
#else
- php_error(E_WARNING, "apache_child_terminate() is not supported in this build");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "apache_child_terminate() is not supported in this build");
RETURN_FALSE;
#endif
}
@@ -304,13 +304,13 @@ PHP_FUNCTION(virtual)
convert_to_string_ex(filename);
if (!(rr = sub_req_lookup_uri ((*filename)->value.str.val, ((request_rec *) SG(server_context))))) {
- php_error(E_WARNING, "Unable to include '%s' - URI lookup failed", (*filename)->value.str.val);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - URI lookup failed", (*filename)->value.str.val);
if (rr) destroy_sub_req (rr);
RETURN_FALSE;
}
if (rr->status != 200) {
- php_error(E_WARNING, "Unable to include '%s' - error finding URI", (*filename)->value.str.val);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - error finding URI", (*filename)->value.str.val);
if (rr) destroy_sub_req (rr);
RETURN_FALSE;
}
@@ -319,7 +319,7 @@ PHP_FUNCTION(virtual)
php_header();
if (run_sub_req(rr)) {
- php_error(E_WARNING, "Unable to include '%s' - request execution failed", (*filename)->value.str.val);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - request execution failed", (*filename)->value.str.val);
if (rr) destroy_sub_req (rr);
RETURN_FALSE;
} else {
@@ -415,7 +415,7 @@ PHP_FUNCTION(apache_lookup_uri)
convert_to_string_ex(filename);
if(!(rr = sub_req_lookup_uri((*filename)->value.str.val, ((request_rec *) SG(server_context))))) {
- php_error(E_WARNING, "URI lookup failed", (*filename)->value.str.val);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "URI lookup failed", (*filename)->value.str.val);
RETURN_FALSE;
}
object_init(return_value);
@@ -490,7 +490,7 @@ PHP_FUNCTION(apache_exec_uri)
convert_to_string_ex(filename);
if(!(rr = ap_sub_req_lookup_uri((*filename)->value.str.val, ((request_rec *) SG(server_context))))) {
- php_error(E_WARNING, "URI lookup failed", (*filename)->value.str.val);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "URI lookup failed", (*filename)->value.str.val);
RETURN_FALSE;
}
RETVAL_LONG(ap_run_sub_req(rr));