[php-src] PR #13079: Change PHP_ZTS and PHP_DEBUG to bool to match their ZEND equivalents
| From: | haszi | Date: | Fri, 05 Jan 2024 20:36:04 +0000 |
| Subject: | [php-src] PR #13079: Change PHP_ZTS and PHP_DEBUG to bool to match their ZEND equivalents | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24672@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13079
Author: haszi
The constants ZEND_THREAD_SAFE and PHP_ZTS, and ZEND_DEBUG_BUILD and PHP_DEBUG are based on the same
underlying values (the values of ZTS and ZEND_DEBUG respectively). Despite this, the ZEND constants
are bool while their PHP equivalents are int. This PR aims to change these aliases to be of the same
type, bool.
php-src included one test file that used a loose comparison with PHP_ZTS which this PR also updates
to use the same format other comparisons with this constant use (i.e
if (PHP_ZTS) /
if (!PHP_ZTS) ).