summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r--ext/standard/string.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index f369117e10..56b9f43da5 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -3572,24 +3572,6 @@ PHP_FUNCTION(stripslashes)
}
/* }}} */
-#ifndef HAVE_STRERROR
-/* {{{ php_strerror
- */
-char *php_strerror(int errnum)
-{
- extern int sys_nerr;
- extern char *sys_errlist[];
-
- if ((unsigned int) errnum < sys_nerr) {
- return(sys_errlist[errnum]);
- }
-
- (void) snprintf(BG(str_ebuf), sizeof(php_basic_globals.str_ebuf), "Unknown error: %d", errnum);
- return(BG(str_ebuf));
-}
-/* }}} */
-#endif
-
/* {{{ php_stripcslashes
*/
PHPAPI void php_stripcslashes(zend_string *str)