diff options
Diffstat (limited to 'ext/standard')
| -rw-r--r-- | ext/standard/php_string.h | 5 | ||||
| -rw-r--r-- | ext/standard/string.c | 18 |
2 files changed, 0 insertions, 23 deletions
diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h index 03d1ee8f8c..53209f4485 100644 --- a/ext/standard/php_string.h +++ b/ext/standard/php_string.h @@ -143,11 +143,6 @@ PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2); PHPAPI int string_natural_case_compare_function(zval *result, zval *op1, zval *op2); -#ifndef HAVE_STRERROR -PHPAPI char *php_strerror(int errnum); -#define strerror php_strerror -#endif - #ifndef HAVE_MBLEN # define php_mblen(ptr, len) 1 # define php_mb_reset() 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) |
