summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-10 19:41:21 +0000
committerZeev Suraski <zeev@php.net>2000-02-10 19:41:21 +0000
commit6d0ab6166cc1a4eca90211cdfa0ca144704ad677 (patch)
treeee2b2758afeb47bf3a9648c0067d9b747b91e5b2 /ext/standard/string.c
parent9709f7ec73557e0a1a85ad3fbc4c73806de50620 (diff)
downloadphp-git-6d0ab6166cc1a4eca90211cdfa0ca144704ad677.tar.gz
SAPIfication, Episode VI: Return of the SAPI
Remove mostly all references to APACHE and CGI_BINARY from the code. - Apache include files are no longer included by any PHP code, except for the Apache SAPI module. - No server specific code is in any of the base PHP code. Still left to be done: - Eliminate any references to APACHE from the few remaining modules. - Move request_info.c's logic to SAPI - Modify the regex function names, and globals, so that we can always include them, without having to fear any interference with Apache; Always use the bundled regex library
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r--ext/standard/string.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index a9f767a82c..f3cd2bda12 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -1503,8 +1503,7 @@ PHP_FUNCTION(stripslashes)
/* }}} */
#ifndef HAVE_STRERROR
-#if !APACHE
-char *strerror(int errnum)
+char *php_strerror(int errnum)
{
extern int sys_nerr;
extern char *sys_errlist[];
@@ -1515,7 +1514,6 @@ char *strerror(int errnum)
return(BG(str_ebuf));
}
#endif
-#endif
PHPAPI void php_stripcslashes(char *str, int *len)
{