We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assert()
1 parent 2449f9e commit c559eaeCopy full SHA for c559eae
ext/zend_test/test.c
@@ -33,6 +33,12 @@
33
#include "Zend/zend_alloc.h"
34
#include "test_arginfo.h"
35
36
+// `php.h` sets `NDEBUG` when not `PHP_DEBUG` which will make `assert()` from
37
+// assert.h a no-op. In order to have `assert()` working on NDEBUG builds, we
38
+// undefine `NDEBUG` and re-include assert.h
39
+#undef NDEBUG
40
+#include "assert.h"
41
+
42
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
43
# include <libxml/globals.h>
44
# include <libxml/parser.h>
0 commit comments