1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/win32
Christoph M. Becker 836a162089 Don't fiddle with NDEBUG in C code (GH-16511)
* Don't fiddle with NDEBUG in C code

It is way to late to do this in php.h, since assert.h has already been
included.  Even pushing that down to zend_portability.h may not have
the desired effect.  Instead we define or undefine NDEBUG as CFLAG, so
that it works in all circumstances.

As a last resort we fail at build time, if `NDEBUG` is defined when
`ZEND_DEBUG` is enabled.

We also remove the useless workaround in zend_test to include assert.h
again, since that usually won't have any effect anyway.

Co-authored-by: Arnaud Le Blanc <arnaud.lb@gmail.com>
2024-10-27 18:20:59 +01:00
..
2019-02-03 21:03:00 +01:00
2018-01-03 14:38:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2019-02-03 21:03:00 +01:00
2023-07-07 18:02:32 +02:00
2023-07-07 18:02:32 +02:00
2021-05-06 12:16:35 +02:00
2020-06-08 10:38:45 +02:00
2019-02-08 18:42:48 -08:00
2021-05-06 12:16:35 +02:00
2024-08-14 21:09:26 +02:00
2019-02-03 21:03:00 +01:00
2019-07-11 13:11:08 +02:00