php-src/ext/zend_test
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
..
tests Merge branch 'PHP-8.3' into PHP-8.4 2024-10-22 15:21:26 +02:00
config.m4 Autotools: Normalize and quote all PHP_NEW_EXTENSION arguments (#15144) 2024-07-29 00:14:59 +02:00
config.w32 Add gc and shutdown callbacks to ZendMM custom handlers (#13432) 2024-06-19 19:43:57 +02:00
fiber.c Merge branch 'PHP-8.3' into PHP-8.4 2024-10-14 14:05:21 +02:00
fiber.h
fiber.stub.php
fiber_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
iterators.c general signatures discrepencies fixes (#13122) 2024-01-10 22:19:23 +00:00
iterators.h adds failing test case for #12060 2023-09-05 10:23:22 +01:00
iterators.stub.php adds failing test case for #12060 2023-09-05 10:23:22 +01:00
iterators_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
object_handlers.c Zend: Add tests for offsets and containers (#12723) 2024-01-25 15:06:59 +00:00
object_handlers.h ext/zend_test: Move object handler test objects to their own file (#11852) 2023-08-02 18:52:55 +01:00
object_handlers.stub.php Zend: Add tests for offsets and containers (#12723) 2024-01-25 15:06:59 +00:00
object_handlers_arginfo.h Generated arginfo header files: remove empty zend_function_entry arrays (#15705) 2024-09-03 23:19:53 +02:00
observer.c Merge branch 'PHP-8.3' into PHP-8.4 2024-10-22 14:52:07 +02:00
observer.h
php_test.h Add gc and shutdown callbacks to ZendMM custom handlers (#13432) 2024-06-19 19:43:57 +02:00
test.c Don't fiddle with NDEBUG in C code (GH-16511) 2024-10-27 18:20:59 +01:00
test.stub.php Merge branch 'PHP-8.3' into PHP-8.4 2024-10-07 17:18:32 +02:00
test_arginfo.h Merge branch 'PHP-8.3' into PHP-8.4 2024-10-07 17:18:32 +02:00
zend_mm_custom_handlers.c Add gc and shutdown callbacks to ZendMM custom handlers (#13432) 2024-06-19 19:43:57 +02:00
zend_mm_custom_handlers.h Add gc and shutdown callbacks to ZendMM custom handlers (#13432) 2024-06-19 19:43:57 +02:00