1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/main
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
..
2024-09-24 12:35:06 +02:00
2024-05-19 22:57:08 +02:00
2024-06-24 19:57:28 +02:00
2024-05-29 07:04:05 +02:00
2024-10-06 19:43:19 +01:00
2024-05-29 07:04:05 +02:00
2024-09-14 11:28:32 +02:00
2023-07-25 17:54:14 +02:00
2024-06-09 14:23:41 +02:00
2024-09-26 14:24:13 -05:00
2024-10-06 19:43:19 +01:00
2024-02-08 12:08:07 +01:00
2023-01-16 12:27:33 +01:00
2023-01-16 12:27:33 +01:00