diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1c439ea4..36d9f756 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,7 +44,7 @@ jobs: php-version: ${{ matrix.php }} coverage: none extensions: embed - ini-values: precision=17, memory_limit=4G, error_reporting=E_ERROR|E_WARNING, display_errors=1, log_errors=0 + ini-values: precision=17, memory_limit=4G, error_reporting=E_ERROR|E_WARNING, display_errors=1, display_startup_errors=1, log_errors=0 tools: composer:v2 - name: Patch php_hash.h C++ compatibility @@ -115,7 +115,7 @@ jobs: php-version: ${{ matrix.php }} coverage: none extensions: embed, curl, redis, mbstring, ffi - ini-values: ffi.enable=1, phpy.enable_operator_overloading=0, precision=17, memory_limit=4G, error_reporting=E_ERROR|E_WARNING, display_errors=1, log_errors=0 + ini-values: ffi.enable=1, phpy.enable_operator_overloading=0, precision=17, memory_limit=4G, error_reporting=E_ERROR|E_WARNING, display_errors=1, display_startup_errors=1, log_errors=0 tools: composer:v2 - name: Patch php_hash.h C++ compatibility @@ -181,7 +181,7 @@ jobs: php-version: ${{ matrix.php }} coverage: none extensions: embed, curl, redis, mbstring, ffi - ini-values: ffi.enable=1, phpy.enable_operator_overloading=0, precision=17, memory_limit=4G, error_reporting=E_ERROR|E_WARNING, display_errors=1, log_errors=0 + ini-values: ffi.enable=1, phpy.enable_operator_overloading=0, opcache.jit=0, precision=17, memory_limit=4G, error_reporting=E_ERROR|E_WARNING, display_errors=1, display_startup_errors=1, log_errors=0 tools: composer:v2 - name: Patch php_hash.h C++ compatibility @@ -238,7 +238,7 @@ jobs: - name: Run compiler PHPT suite with bootstrap compiler run: | mkdir -p build - php run-tests.php -q -j4 --compiler ./tpc \ + php run-tests.php -q -j8 --compiler ./tpc \ -w build/failed-tests.txt -W build/test-results.txt tests/compiler - name: Upload PHPT failure artifacts diff --git a/tests/compiler/include_require/001.phpt b/tests/compiler/include_require/001.phpt index 56eedaa1..d30c8c2d 100644 --- a/tests/compiler/include_require/001.phpt +++ b/tests/compiler/include_require/001.phpt @@ -2,6 +2,7 @@ include/require unwind safely when ZendVM calls a compiled function that throws --ENV-- PHPRC=tests/compiler/include_require/no-leak.ini +PHP_INI_SCAN_DIR={PWD}/empty-ini-dir --FILE-- open($path, ZipArchive::CREATE | ZipArchive::OVERWRITE); + for ($idx = 0; $idx < 4; $idx++) { + $zip->addFromString('entry-' . $idx, 'data'); + $zip->setExternalAttributesIndex($idx, ZipArchive::OPSYS_UNIX, 0100644 << 16); + } + $zip->close(); + if ($zip->open($path) === TRUE) { for ($idx = 0; $s = $zip->statIndex($idx); $idx++) { $rs = $zip->getExternalAttributesIndex($idx, $opsys, $attr); @@ -14,6 +21,7 @@ function main() $zip->close(); echo "OK\n"; } + unlink($path); $str = "first=value&arr[]=foo+bar&arr[]=baz"; parse_str($str, $output); @@ -27,21 +35,21 @@ function main() bool(true) int(0) int(3) -int(1107099648) +int(2175008768) bool(true) int(1) int(3) -int(2176057344) +int(2175008768) bool(true) int(2) int(3) -int(2176057344) +int(2175008768) bool(true) int(3) int(3) -int(2176057344) +int(2175008768) OK value foo bar baz -DONE \ No newline at end of file +DONE