Skip to content
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ web development. Fast, flexible and pragmatic, PHP powers everything from your
blog to the most popular websites in the world. PHP is distributed under the
[PHP License v3.01](LICENSE).

[![Push](https://github.com/php/php-src/actions/workflows/push.yml/badge.svg)](https://github.com/php/php-src/actions/workflows/push.yml)
[![Test](https://github.com/php/php-src/actions/workflows/test.yml/badge.svg)](https://github.com/php/php-src/actions/workflows/test.yml)
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/php.svg)](https://issues.oss-fuzz.com/issues?q=project:php)

## Documentation
Expand Down
5 changes: 3 additions & 2 deletions Zend/tests/bug74093.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
--TEST--
Bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_log)
--FLAKY--
--SKIPIF--
<?php
if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test');
Expand All @@ -13,8 +14,8 @@ max_execution_time=1
hard_timeout=1
--FILE--
<?php
$a1 = range(1, 2000000);
$a2 = range(100000, 2999999);
$a1 = range(1, 3000000);
$a2 = range(100000, 3999999);
array_intersect($a1, $a2);
?>
--EXPECTF--
Expand Down
2 changes: 0 additions & 2 deletions ext/phar/tests/phar_extract2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ $dir = __DIR__ . '/extract2/';
@rmdir($dir . 'one/level');
@rmdir($dir . 'one');
@rmdir($dir);
$dir = __DIR__ . '/extract1/';
@rmdir($dir);
?>
--EXPECTF--
%sextract2%cfile1.txt
Expand Down
16 changes: 16 additions & 0 deletions ext/standard/tests/array/array_diff_max_elements.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--TEST--
array_diff(): Max elements
--FILE--
<?php

$power = 20; // Chosen to be well within a memory_limit
$arr = range(0, 2**$power);
try {
array_diff(...array_fill(0, 2**(32-$power), $arr));
} catch (Error $e) {
echo $e->getMessage(), "\n";
}

?>
--EXPECTF--
The total number of elements must be lower than %d