Skip to content

Commit

Permalink
tests: Fix PHP ZTS detection
Browse files Browse the repository at this point in the history
PHP 8.4 changed the PHP_ZTS constant to bool:
https://www.github.com/php/php-src/pull/13079

As a result, the tests that fail with ZTS would no longer be skipped.
  • Loading branch information
jtojnar committed Aug 10, 2024
1 parent 2b0e779 commit bbc66a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/apc54_014.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ APC: Bug #61742 preload_path does not work due to incorrect string length (varia
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
if (PHP_ZTS === 1) {
if (PHP_ZTS) {
die('skip PHP non-ZTS only');
}
?>
Expand Down
2 changes: 1 addition & 1 deletion tests/ghbug176.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ APC: GH Bug #176 preload_path segfaults with bad data
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
if (PHP_ZTS === 1) {
if (PHP_ZTS) {
die('skip PHP non-ZTS only');
}
?>
Expand Down

0 comments on commit bbc66a3

Please sign in to comment.