com php-src: Remove HAVE_ASSERT_H: configure.ac ext /bcmath/libbcmath/src/add.c ext/bcmath/libbcmath/src/compar e.c ext/bcmath/libbcmath/src/debug.c
ext/bcmath/libbcma th/src/div.c ext/bcmath/libbcmath/src/divmod.c ext/bcma th/libbcmath/src/doaddsub.c ext/bcmath/libbcmath/src/init .c
ext/bcmath/libbcmath/src/int2num.c ext/bcmath/libb cmath/src/nearzero.c ext/bcmath/libbcmath/src/neg.c ext /bcmath/libbcmath/src/num2long.c
ext/bcmath/libbcmath/src /num2str
| From: | Peter Kokot | Date: | Sun, 09 Sep 2018 07:43:03 +0000 |
| Subject: | com php-src: Remove HAVE_ASSERT_H: configure.ac ext /bcmath/libbcmath/src/add.c ext/bcmath/libbcmath/src/compar e.c ext/bcmath/libbcmath/src/debug.c ext/bcmath/libbcma th/src/div.c ext/bcmath/libbcmath/src/divmod.c ext/bcma th/libbcmath/src/doaddsub.c ext/bcmath/libbcmath/src/init .c ext/bcmath/libbcmath/src/int2num.c ext/bcmath/libb cmath/src/nearzero.c ext/bcmath/libbcmath/src/neg.c ext /bcmath/libbcmath/src/num2long.c ext/bcmath/libbcmath/src /num2str |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-103030@lists.php.net to get a copy of this message | ||
Commit: 77118fc925b3e84be02a80d8da6bbbb47f8c37e1
Author: Peter Kokot <peterkokot@gmail.com> Wed, 5 Sep 2018 00:09:56 +0200
Parents: c92425dbabf43fa32d7aeb45b768dc0a2f1d3370
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=77118fc925b3e84be02a80d8da6bbbb47f8c37e1
Log:
Remove HAVE_ASSERT_H
The
diff --git a/configure.ac b/configure.ac index 2ad2190..aa5456e 100644 --- a/configure.ac +++ b/configure.ac @@ -434,7 +434,6 @@ netinet/in.h \ alloca.h \ arpa/inet.h \ arpa/nameser.h \ -assert.h \ crypt.h \ dns.h \ fcntl.h \ @@ -477,7 +476,6 @@ utime.h \ sys/utsname.h \ sys/ipc.h \ dlfcn.h \ -assert.h \ tmmintrin.h \ nmmintrin.h \ immintrin.h diff --git a/ext/bcmath/libbcmath/src/add.c b/ext/bcmath/libbcmath/src/add.c index ade5b59..d41ea01 100644 --- a/ext/bcmath/libbcmath/src/add.c +++ b/ext/bcmath/libbcmath/src/add.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/compare.c b/ext/bcmath/libbcmath/src/compare.c index 6217ef1..ced7ec1 100644 --- a/ext/bcmath/libbcmath/src/compare.c +++ b/ext/bcmath/libbcmath/src/compare.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/debug.c b/ext/bcmath/libbcmath/src/debug.c index 0ff7d65..b711c06 100644 --- a/ext/bcmath/libbcmath/src/debug.c +++ b/ext/bcmath/libbcmath/src/debug.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/div.c b/ext/bcmath/libbcmath/src/div.c index df5de29..a8039f2 100644 --- a/ext/bcmath/libbcmath/src/div.c +++ b/ext/bcmath/libbcmath/src/div.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/divmod.c b/ext/bcmath/libbcmath/src/divmod.c index 08c2f8a..6ee6c25 100644 --- a/ext/bcmath/libbcmath/src/divmod.c +++ b/ext/bcmath/libbcmath/src/divmod.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/doaddsub.c b/ext/bcmath/libbcmath/src/doaddsub.c index cef0fdb..dc0ba06 100644 --- a/ext/bcmath/libbcmath/src/doaddsub.c +++ b/ext/bcmath/libbcmath/src/doaddsub.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/init.c b/ext/bcmath/libbcmath/src/init.c index bd73da2..227a34f 100644 --- a/ext/bcmath/libbcmath/src/init.c +++ b/ext/bcmath/libbcmath/src/init.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/int2num.c b/ext/bcmath/libbcmath/src/int2num.c index a8965f6..12a3342 100644 --- a/ext/bcmath/libbcmath/src/int2num.c +++ b/ext/bcmath/libbcmath/src/int2num.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/nearzero.c b/ext/bcmath/libbcmath/src/nearzero.c index 1f2f070..041c7e1 100644 --- a/ext/bcmath/libbcmath/src/nearzero.c +++ b/ext/bcmath/libbcmath/src/nearzero.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/neg.c b/ext/bcmath/libbcmath/src/neg.c index 619a59b..8c00905 100644 --- a/ext/bcmath/libbcmath/src/neg.c +++ b/ext/bcmath/libbcmath/src/neg.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/num2long.c b/ext/bcmath/libbcmath/src/num2long.c index be84986..2cef679 100644 --- a/ext/bcmath/libbcmath/src/num2long.c +++ b/ext/bcmath/libbcmath/src/num2long.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/num2str.c b/ext/bcmath/libbcmath/src/num2str.c index 7316d32..742d327 100644 --- a/ext/bcmath/libbcmath/src/num2str.c +++ b/ext/bcmath/libbcmath/src/num2str.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/outofmem.c b/ext/bcmath/libbcmath/src/outofmem.c index 7c67509..e1e3f53 100644 --- a/ext/bcmath/libbcmath/src/outofmem.c +++ b/ext/bcmath/libbcmath/src/outofmem.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/output.c b/ext/bcmath/libbcmath/src/output.c index 9fbca0f..e172662 100644 --- a/ext/bcmath/libbcmath/src/output.c +++ b/ext/bcmath/libbcmath/src/output.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/raise.c b/ext/bcmath/libbcmath/src/raise.c index c7838be..4b938cb 100644 --- a/ext/bcmath/libbcmath/src/raise.c +++ b/ext/bcmath/libbcmath/src/raise.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/raisemod.c b/ext/bcmath/libbcmath/src/raisemod.c index a3154b5..9b371cc 100644 --- a/ext/bcmath/libbcmath/src/raisemod.c +++ b/ext/bcmath/libbcmath/src/raisemod.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/rmzero.c b/ext/bcmath/libbcmath/src/rmzero.c index 1b81601..4751099 100644 --- a/ext/bcmath/libbcmath/src/rmzero.c +++ b/ext/bcmath/libbcmath/src/rmzero.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/sqrt.c b/ext/bcmath/libbcmath/src/sqrt.c index 265d75b..ffb19fc 100644 --- a/ext/bcmath/libbcmath/src/sqrt.c +++ b/ext/bcmath/libbcmath/src/sqrt.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/str2num.c b/ext/bcmath/libbcmath/src/str2num.c index 62544de..abf68eb 100644 --- a/ext/bcmath/libbcmath/src/str2num.c +++ b/ext/bcmath/libbcmath/src/str2num.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/sub.c b/ext/bcmath/libbcmath/src/sub.c index b63f1bc..86c876d 100644 --- a/ext/bcmath/libbcmath/src/sub.c +++ b/ext/bcmath/libbcmath/src/sub.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/zero.c b/ext/bcmath/libbcmath/src/zero.c index ffb5497..6f0e93a 100644 --- a/ext/bcmath/libbcmath/src/zero.c +++ b/ext/bcmath/libbcmath/src/zero.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/mbstring/libmbfl/config.h.in b/ext/mbstring/libmbfl/config.h.in index c30fa09..28bb935 100644 --- a/ext/mbstring/libmbfl/config.h.in +++ b/ext/mbstring/libmbfl/config.h.in @@ -1,8 +1,5 @@ /* config.h.in. Generated from configure.in by autoheader. */ -/* Define to 1 if you have the <assert.h> header file. */ -#undef HAVE_ASSERT_H - /* Define to 1 if you have the <dlfcn.h> header file. */ #undef HAVE_DLFCN_H diff --git a/ext/mbstring/libmbfl/config.h.w32 b/ext/mbstring/libmbfl/config.h.w32 index 14393a0..4ec5372 100644 --- a/ext/mbstring/libmbfl/config.h.w32 +++ b/ext/mbstring/libmbfl/config.h.w32 @@ -1,6 +1,5 @@ #define HAVE_STDIO_H 1 #define HAVE_STDLIB_H 1 -#define HAVE_ASSERT_H 1 #define HAVE_MEMORY_H 1 /* #undef HAVE_STRINGS_H */ #define HAVE_STRING_H 1 diff --git a/ext/standard/strnatcmp.c b/ext/standard/strnatcmp.c index 64ff8fc..bcbd556 100644 --- a/ext/standard/strnatcmp.c +++ b/ext/standard/strnatcmp.c @@ -24,7 +24,6 @@ #include <ctype.h> #include <string.h> -#include <assert.h> #include <stdio.h> #include "php.h" diff --git a/main/php.h b/main/php.h index 697d3ff..4134f7b 100644 --- a/main/php.h +++ b/main/php.h @@ -123,7 +123,6 @@ typedef int pid_t; # endif #endif -#if HAVE_ASSERT_H #if PHP_DEBUG #undef NDEBUG #else @@ -132,9 +131,6 @@ typedef int pid_t; #endif #endif #include <assert.h> -#else /* HAVE_ASSERT_H */ -#define assert(expr) ((void) (0)) -#endif /* HAVE_ASSERT_H */ #define APACHE 0 diff --git a/main/php_syslog.c b/main/php_syslog.c index dd16f05..2170ac7 100644 --- a/main/php_syslog.c +++ b/main/php_syslog.c @@ -18,7 +18,6 @@ #include <stdio.h> #include <string.h> -#include <assert.h> #include <stdlib.h> #include "php.h" #include "php_syslog.h" diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index 4a510ea..3275552 100644 --- a/win32/build/config.w32.h.in +++ b/win32/build/config.w32.h.in @@ -95,7 +95,6 @@ #define HAVE_TEMPNAM 1 #define HAVE_UTIME 1 #undef HAVE_DIRENT_H -#define HAVE_ASSERT_H 1 #define HAVE_FCNTL_H 1 #define HAVE_GRP_H 0 #undef HAVE_PWD_H
<assert.h> header file is part of the standard C89 headers [1] and
on older systems there needed to be also a manual check if header is
present.
Since PHP requires at least C89 manual check and the HAVE_ASSERT_H
symbol defined by Autoconf in configure.ac can be both removed [2].
This patch also removes unused <assert.h> includes where c files don't
use the assert() macro.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
Bugs:
https://bugs.php.net/4
Changed paths:
M configure.ac
M ext/bcmath/libbcmath/src/add.c
M ext/bcmath/libbcmath/src/compare.c
M ext/bcmath/libbcmath/src/debug.c
M ext/bcmath/libbcmath/src/div.c
M ext/bcmath/libbcmath/src/divmod.c
M ext/bcmath/libbcmath/src/doaddsub.c
M ext/bcmath/libbcmath/src/init.c
M ext/bcmath/libbcmath/src/int2num.c
M ext/bcmath/libbcmath/src/nearzero.c
M ext/bcmath/libbcmath/src/neg.c
M ext/bcmath/libbcmath/src/num2long.c
M ext/bcmath/libbcmath/src/num2str.c
M ext/bcmath/libbcmath/src/outofmem.c
M ext/bcmath/libbcmath/src/output.c
M ext/bcmath/libbcmath/src/raise.c
M ext/bcmath/libbcmath/src/raisemod.c
M ext/bcmath/libbcmath/src/rmzero.c
M ext/bcmath/libbcmath/src/sqrt.c
M ext/bcmath/libbcmath/src/str2num.c
M ext/bcmath/libbcmath/src/sub.c
M ext/bcmath/libbcmath/src/zero.c
M ext/mbstring/libmbfl/config.h.in
M ext/mbstring/libmbfl/config.h.w32
M ext/standard/strnatcmp.c
M main/php.h
M main/php_syslog.c
M win32/build/config.w32.h.in
diff --git a/configure.ac b/configure.ac index 2ad2190..aa5456e 100644 --- a/configure.ac +++ b/configure.ac @@ -434,7 +434,6 @@ netinet/in.h \ alloca.h \ arpa/inet.h \ arpa/nameser.h \ -assert.h \ crypt.h \ dns.h \ fcntl.h \ @@ -477,7 +476,6 @@ utime.h \ sys/utsname.h \ sys/ipc.h \ dlfcn.h \ -assert.h \ tmmintrin.h \ nmmintrin.h \ immintrin.h diff --git a/ext/bcmath/libbcmath/src/add.c b/ext/bcmath/libbcmath/src/add.c index ade5b59..d41ea01 100644 --- a/ext/bcmath/libbcmath/src/add.c +++ b/ext/bcmath/libbcmath/src/add.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/compare.c b/ext/bcmath/libbcmath/src/compare.c index 6217ef1..ced7ec1 100644 --- a/ext/bcmath/libbcmath/src/compare.c +++ b/ext/bcmath/libbcmath/src/compare.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/debug.c b/ext/bcmath/libbcmath/src/debug.c index 0ff7d65..b711c06 100644 --- a/ext/bcmath/libbcmath/src/debug.c +++ b/ext/bcmath/libbcmath/src/debug.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/div.c b/ext/bcmath/libbcmath/src/div.c index df5de29..a8039f2 100644 --- a/ext/bcmath/libbcmath/src/div.c +++ b/ext/bcmath/libbcmath/src/div.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/divmod.c b/ext/bcmath/libbcmath/src/divmod.c index 08c2f8a..6ee6c25 100644 --- a/ext/bcmath/libbcmath/src/divmod.c +++ b/ext/bcmath/libbcmath/src/divmod.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/doaddsub.c b/ext/bcmath/libbcmath/src/doaddsub.c index cef0fdb..dc0ba06 100644 --- a/ext/bcmath/libbcmath/src/doaddsub.c +++ b/ext/bcmath/libbcmath/src/doaddsub.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/init.c b/ext/bcmath/libbcmath/src/init.c index bd73da2..227a34f 100644 --- a/ext/bcmath/libbcmath/src/init.c +++ b/ext/bcmath/libbcmath/src/init.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/int2num.c b/ext/bcmath/libbcmath/src/int2num.c index a8965f6..12a3342 100644 --- a/ext/bcmath/libbcmath/src/int2num.c +++ b/ext/bcmath/libbcmath/src/int2num.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/nearzero.c b/ext/bcmath/libbcmath/src/nearzero.c index 1f2f070..041c7e1 100644 --- a/ext/bcmath/libbcmath/src/nearzero.c +++ b/ext/bcmath/libbcmath/src/nearzero.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/neg.c b/ext/bcmath/libbcmath/src/neg.c index 619a59b..8c00905 100644 --- a/ext/bcmath/libbcmath/src/neg.c +++ b/ext/bcmath/libbcmath/src/neg.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/num2long.c b/ext/bcmath/libbcmath/src/num2long.c index be84986..2cef679 100644 --- a/ext/bcmath/libbcmath/src/num2long.c +++ b/ext/bcmath/libbcmath/src/num2long.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/num2str.c b/ext/bcmath/libbcmath/src/num2str.c index 7316d32..742d327 100644 --- a/ext/bcmath/libbcmath/src/num2str.c +++ b/ext/bcmath/libbcmath/src/num2str.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/outofmem.c b/ext/bcmath/libbcmath/src/outofmem.c index 7c67509..e1e3f53 100644 --- a/ext/bcmath/libbcmath/src/outofmem.c +++ b/ext/bcmath/libbcmath/src/outofmem.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/output.c b/ext/bcmath/libbcmath/src/output.c index 9fbca0f..e172662 100644 --- a/ext/bcmath/libbcmath/src/output.c +++ b/ext/bcmath/libbcmath/src/output.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/raise.c b/ext/bcmath/libbcmath/src/raise.c index c7838be..4b938cb 100644 --- a/ext/bcmath/libbcmath/src/raise.c +++ b/ext/bcmath/libbcmath/src/raise.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/raisemod.c b/ext/bcmath/libbcmath/src/raisemod.c index a3154b5..9b371cc 100644 --- a/ext/bcmath/libbcmath/src/raisemod.c +++ b/ext/bcmath/libbcmath/src/raisemod.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/rmzero.c b/ext/bcmath/libbcmath/src/rmzero.c index 1b81601..4751099 100644 --- a/ext/bcmath/libbcmath/src/rmzero.c +++ b/ext/bcmath/libbcmath/src/rmzero.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/sqrt.c b/ext/bcmath/libbcmath/src/sqrt.c index 265d75b..ffb19fc 100644 --- a/ext/bcmath/libbcmath/src/sqrt.c +++ b/ext/bcmath/libbcmath/src/sqrt.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/str2num.c b/ext/bcmath/libbcmath/src/str2num.c index 62544de..abf68eb 100644 --- a/ext/bcmath/libbcmath/src/str2num.c +++ b/ext/bcmath/libbcmath/src/str2num.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/sub.c b/ext/bcmath/libbcmath/src/sub.c index b63f1bc..86c876d 100644 --- a/ext/bcmath/libbcmath/src/sub.c +++ b/ext/bcmath/libbcmath/src/sub.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/bcmath/libbcmath/src/zero.c b/ext/bcmath/libbcmath/src/zero.c index ffb5497..6f0e93a 100644 --- a/ext/bcmath/libbcmath/src/zero.c +++ b/ext/bcmath/libbcmath/src/zero.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> diff --git a/ext/mbstring/libmbfl/config.h.in b/ext/mbstring/libmbfl/config.h.in index c30fa09..28bb935 100644 --- a/ext/mbstring/libmbfl/config.h.in +++ b/ext/mbstring/libmbfl/config.h.in @@ -1,8 +1,5 @@ /* config.h.in. Generated from configure.in by autoheader. */ -/* Define to 1 if you have the <assert.h> header file. */ -#undef HAVE_ASSERT_H - /* Define to 1 if you have the <dlfcn.h> header file. */ #undef HAVE_DLFCN_H diff --git a/ext/mbstring/libmbfl/config.h.w32 b/ext/mbstring/libmbfl/config.h.w32 index 14393a0..4ec5372 100644 --- a/ext/mbstring/libmbfl/config.h.w32 +++ b/ext/mbstring/libmbfl/config.h.w32 @@ -1,6 +1,5 @@ #define HAVE_STDIO_H 1 #define HAVE_STDLIB_H 1 -#define HAVE_ASSERT_H 1 #define HAVE_MEMORY_H 1 /* #undef HAVE_STRINGS_H */ #define HAVE_STRING_H 1 diff --git a/ext/standard/strnatcmp.c b/ext/standard/strnatcmp.c index 64ff8fc..bcbd556 100644 --- a/ext/standard/strnatcmp.c +++ b/ext/standard/strnatcmp.c @@ -24,7 +24,6 @@ #include <ctype.h> #include <string.h> -#include <assert.h> #include <stdio.h> #include "php.h" diff --git a/main/php.h b/main/php.h index 697d3ff..4134f7b 100644 --- a/main/php.h +++ b/main/php.h @@ -123,7 +123,6 @@ typedef int pid_t; # endif #endif -#if HAVE_ASSERT_H #if PHP_DEBUG #undef NDEBUG #else @@ -132,9 +131,6 @@ typedef int pid_t; #endif #endif #include <assert.h> -#else /* HAVE_ASSERT_H */ -#define assert(expr) ((void) (0)) -#endif /* HAVE_ASSERT_H */ #define APACHE 0 diff --git a/main/php_syslog.c b/main/php_syslog.c index dd16f05..2170ac7 100644 --- a/main/php_syslog.c +++ b/main/php_syslog.c @@ -18,7 +18,6 @@ #include <stdio.h> #include <string.h> -#include <assert.h> #include <stdlib.h> #include "php.h" #include "php_syslog.h" diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index 4a510ea..3275552 100644 --- a/win32/build/config.w32.h.in +++ b/win32/build/config.w32.h.in @@ -95,7 +95,6 @@ #define HAVE_TEMPNAM 1 #define HAVE_UTIME 1 #undef HAVE_DIRENT_H -#define HAVE_ASSERT_H 1 #define HAVE_FCNTL_H 1 #define HAVE_GRP_H 0 #undef HAVE_PWD_H