summaryrefslogtreecommitdiff
path: root/ext/standard/php_string.h
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-04-08 23:39:45 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-04-08 23:39:45 +0200
commite6a6017f78878609b2885451b6046717f478c027 (patch)
treede2b1e0c4fb63488626db4f247d3ef2d52aa1eca /ext/standard/php_string.h
parent07df6594b5c71b176b376aba8007bc33616bbfb0 (diff)
downloadphp-git-e6a6017f78878609b2885451b6046717f478c027.tar.gz
Remove HAVE_STRERROR
Checking for the strerror function presence is no longer needed since it is part of the C89 standard [1] and can be safely assumed that all current systems have it. Check in the configure.ac and Windows defined symbol are still left until the file library (libmagic) will be updated. [1]: https://port70.net/~nsz/c/c89/c89-draft.html
Diffstat (limited to 'ext/standard/php_string.h')
-rw-r--r--ext/standard/php_string.h5
1 files changed, 0 insertions, 5 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()