Skip to content

Commit ad5fe4c

Browse files
committed
Enable STACK_LIMIT_DEFAULTS_CHECK in CI
1 parent e2f97eb commit ad5fe4c

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

Diff for: .appveyor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ environment:
2828
#PDO_MYSQL_TEST_PASS: Password12!
2929
#PGSQL_TEST_CONNSTR: "host=127.0.0.1 dbname=test port=5432 user=postgres password=Password12!"
3030
#PDO_PGSQL_TEST_DSN: "pgsql:host=127.0.0.1 port=5432 dbname=test user=postgres password=Password12!"
31+
STACK_LIMIT_DEFAULTS_CHECK: 1
3132
#build permutations
3233
matrix:
3334
- THREAD_SAFE: 0

Diff for: .cirrus.yml

+1
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,5 @@ freebsd_task:
201201
tests_script:
202202
- export SKIP_IO_CAPTURE_TESTS=1
203203
- export CI_NO_IPV6=1
204+
- export STACK_LIMIT_DEFAULTS_CHECK=1
204205
- sapi/cli/php run-tests.php -P -q -j2 -g FAIL,BORK,LEAK,XLEAK --no-progress --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so

Diff for: .github/actions/test-linux/action.yml

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ runs:
3030
export PDO_OCI_TEST_DSN="oci:dbname=localhost/XEPDB1;charset=AL32UTF8"
3131
export SKIP_IO_CAPTURE_TESTS=1
3232
export TEST_PHP_JUNIT=junit.out.xml
33+
export STACK_LIMIT_DEFAULTS_CHECK=1
3334
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
3435
-j$(/usr/bin/nproc) \
3536
-g FAIL,BORK,LEAK,XLEAK \

Diff for: .github/actions/test-macos/action.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ runs:
1515
export SKIP_IO_CAPTURE_TESTS=1
1616
export CI_NO_IPV6=1
1717
export TEST_PHP_JUNIT=junit.out.xml
18+
export STACK_LIMIT_DEFAULTS_CHECK=1
1819
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
1920
-j$(sysctl -n hw.ncpu) \
2021
-g FAIL,BORK,LEAK,XLEAK \

Diff for: Zend/tests/stack_limit/stack_limit_010.phpt

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ $expectedMaxSize = match(php_uname('s')) {
1919
'amd64' => 512*1024*1024 - 4096,
2020
'i386' => 64*1024*1024 - 4096,
2121
},
22-
'Linux' => 8*1024*1024,
22+
'Linux' => match (getenv('GITHUB_ACTIONS')) {
23+
'true' => 16*1024*1024, // https://github.com/actions/runner-images/pull/3328
24+
default => 8*1024*1024,
25+
},
2326
'Windows NT' => 67108864 - 4*4096, // Set by sapi/cli/config.w32
2427
};
2528

0 commit comments

Comments
 (0)