Skip to content

Commit e532e64

Browse files
authored
Reverts INI directive check
1 parent 5287940 commit e532e64

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/FFI.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,8 @@ private static function init(): void
243243
if (!ini_get('ffi.enable')) {
244244
throw new Exception("ffi.enable not set to 'true'");
245245
}
246-
if (version_compare(PHP_VERSION, '8.3', '>=') &&
247-
ini_get('zend.max_allowed_stack_size') !== '-1' &&
248-
ini_get('zend.max_allowed_stack_size') !== false) {
246+
if (version_compare(PHP_VERSION, '8.3', '>=') &&
247+
ini_get('zend.max_allowed_stack_size') != '-1') {
249248
throw new Exception("zend.max_allowed_stack_size not set to '-1'");
250249
}
251250

0 commit comments

Comments
 (0)