[php-src] PR #16366: Push NDEBUG handling down to zend_portability.h

From: Date: Fri, 11 Oct 2024 10:06:52 +0000
Subject: [php-src] PR #16366: Push NDEBUG handling down to zend_portability.h
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29156@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16366 Author: cmb69 As is, NEDBUG is set to match PHP_DEBUG (which matches ZEND_DEBUG) in php.h right before including assert.h; however, assert.h is already included at this point, so the NDEBUG handling is useless. We push it down to zend_portability.h, where it has effect. The alternative would be to drop that code in php.h altogether, but that would make some test assumptions invalid. E.g. a build with CFLAGS=-DNDEBUG ./configure --enable-debug-assertions would fail internal_functions001.phpt, because the userland PHP_DEBUG is true, but assertions would not be evaluated.

« previous php.git-pulls (#29156) next »