1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Commit Graph

883 Commits

Author SHA1 Message Date
Ilija Tovilo
801e587faa Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  [skip ci] Auto-mark SKIP_PERF_SENSITIVE tests as flaky
2025-10-21 17:53:32 +02:00
Ilija Tovilo
dc74dd5ad4 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  [skip ci] Auto-mark SKIP_PERF_SENSITIVE tests as flaky
2025-10-21 17:53:24 +02:00
Ilija Tovilo
217fceaf58 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  [skip ci] Auto-mark SKIP_PERF_SENSITIVE tests as flaky
2025-10-21 17:53:17 +02:00
Ilija Tovilo
db98c5717e Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  [skip ci] Auto-mark SKIP_PERF_SENSITIVE tests as flaky
2025-10-21 17:53:10 +02:00
Ilija Tovilo
99076ebfb0 [skip ci] Auto-mark SKIP_PERF_SENSITIVE tests as flaky
These can occasionally fail in CI.
2025-10-21 17:52:04 +02:00
Ilija Tovilo
1a44cd6557 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Automatically skip tty tests if not on tty
2025-10-03 00:47:30 +02:00
Ilija Tovilo
019a179fe5 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Automatically skip tty tests if not on tty
2025-10-03 00:47:13 +02:00
Ilija Tovilo
831597748b Automatically skip tty tests if not on tty
See GH-19975
Closes GH-20013
2025-10-03 00:45:20 +02:00
Alexandre Daubois
a84a82ed88 Deprecate disabling report_memleaks INI directive (#19481)
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_report_memleaks_ini_directive
2025-08-16 14:04:34 +02:00
Alexandre Daubois
9673079903 Fix GH-18404: Display diff when a single test is run (GH-19400) 2025-08-08 19:16:32 +02:00
Arnaud Le Blanc
0eea5d31e0 run-tests.php: Remove extra env vars in the generated .sh file (#18306) 2025-04-29 10:59:10 +02:00
Arnaud Le Blanc
b24addddb4 run-tests.php: Save STDIN section into a file (#18305)
When a test has an --STDIN-- or --PHPDBG-- section, save the section's content into a file, like we do for the other sections.

This makes it bit easier to reproduce these tests outside of run-tests.php.

This doesn't update the .sh file to pass the file as stdin to the program, yet. 

When using gdb, we can pass the file as stdin like this:

    gdb --args php
    (gdb) r test.php < test.stdin
2025-04-15 14:02:08 +02:00
DanielEScherzer
c3b4359873 [skip ci] run-tests.php: fix some typos (#17783) 2025-02-13 16:18:09 +00:00
Eric Norris
0a14ab18d2 RFC: Error Backtraces v2 (#17056)
see https://wiki.php.net/rfc/error_backtraces_v2

Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
2025-01-29 12:54:23 +01:00
dhuang00
71dfa931eb Shuffle tests for a single worker
Even when tests are not run in parallel, shuffling can help discover tests that
unintentionally depend on other tests being run before them.

Closes GH-17149.
2024-12-27 15:58:59 +01:00
Ilija Tovilo
3968dbf258 Merge branch 'PHP-8.4'
* PHP-8.4:
  Hide xfail/xleak test summary
2024-12-12 13:13:04 +01:00
Ilija Tovilo
b86308c222 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Hide xfail/xleak test summary
2024-12-12 13:12:58 +01:00
Ilija Tovilo
e7af08d625 Hide xfail/xleak test summary
We don't show succeeding tests in the summary, and for all intents and purposes,
these tests have succeeded, in that they behave as expected. I've seen the
output confuse people on multiple occasions, for example GH-17105.

Closes GH-17109
2024-12-12 13:12:46 +01:00
Ilija Tovilo
8a9d45b86f Backport flaky flag for phar tests
4e12189604
b6ca871396
062837aa13
2024-12-10 10:35:00 +01:00
Christoph M. Becker
00e88b08d5 [skip ci] Merge branch 'PHP-8.4'
* PHP-8.4:
  [skip ci] chore: update minimum required PHP version.
2024-11-25 22:22:26 +01:00
Marcos Marcolin
7417c63413 [skip ci] chore: update minimum required PHP version.
Closes GH-16868.
2024-11-25 22:21:28 +01:00
Marcos Marcolin
6bf703ad98 chore: remove unused variable. (#16867)
Co-authored-by: Marcos Marcolin <marcos@ixcsoft.com.br>
2024-11-20 22:46:38 +01:00
Markus Staab
cf5ded9cc5 run-tests: removed unused code (#16675) 2024-11-02 11:39:40 +01:00
Markus Staab
cda67fb544 run-tests: drop hrtime() polyfill (#16677) 2024-11-02 10:27:47 +01:00
Markus Staab
836bd22257 run-tests.php: fix wrong comment
[ci skip]

Closes GH-16666.
2024-11-02 10:24:16 +01:00
Ilija Tovilo
1b4bb0bb6b Make %a/%A placeholders in tests lazy (#16088)
This reduces backtracking, which should improve performance and avoid hitting
the backtrack limit in tests with a large output.

See https://github.com/php/php-src/pull/16087
2024-10-07 14:01:54 +02:00
Christoph M. Becker
3e9f2fa071 Avoid dl() in run-tests.php (GH-16126)
Prior to running the tests, the test runner checks for all generally
available extensions; it does this by scanning the `extension_dir` for
files matching the typical extension pattern, but verifies that the
file is actually a PHP extension by calling `dl()`.  However, `dl()`
has known issues[1].  On Windows CI we always get an ugly "zend_mm_heap
corrupted" message, and we even can't `dl()` ext/mysql when OPcache is
enabled[2].  So we better avoid the double-check with `dl()`, which is
unlikely to be necessary anyway.

[1] <https://github.com/php/php-src/issues/9196>
[2] <https://github.com/php/php-src/issues/8508>
2024-10-03 12:58:27 +02:00
Michael Voříšek
d313ad6098 Deprecate E_STRICT constant and remove error level
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant

Closes GH-13053
2024-09-18 14:33:14 +02:00
Ilija Tovilo
5e7a1cc818 Merge branch 'PHP-8.3'
* PHP-8.3:
  Mark some phar tests as flaky on macOS
2024-09-13 18:14:23 +02:00
Ilija Tovilo
5b2d80bc79 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Mark some phar tests as flaky on macOS
2024-09-13 18:14:14 +02:00
Ilija Tovilo
4e12189604 Mark some phar tests as flaky on macOS
Fixes GH-15748
Closes GH-15876
2024-09-13 18:13:10 +02:00
Peter Kokot
13f041163c Remove Travis artefacts (#15714)
Travis was suspended https://github.com/php/php-src/pull/15314

This removes 404 errored Travis image in README, travis configuration
directory and YAML file and usages in tests.

[skip ci]

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-09-04 01:15:10 +02:00
Christoph M. Becker
4dc77953eb Merge branch 'PHP-8.3'
* PHP-8.3:
  Fix run-tests.php to propagate status code on Windows
2024-09-02 00:53:02 +02:00
Christoph M. Becker
71b908748a Fix run-tests.php to propagate status code on Windows
There is now a workaround in `system_with_timeout()` to avoid issues
with quotes and spaces in the filenames of the executable by using
`start`[1].  However, calling `start` will not propagate the process
status of the actual process.  Thus, calling `proc_get_status()`
is pretty meaningless, and especially Microsoft errors cannot be
detected (typically, access violations etc.), and as such no "Termsig"
message is output.

We fix this by executing `exit` after the started command has finished.

[1] <a6d7d5234b/run-tests.php (L1157-L1162)>

Closes GH-15378.
2024-09-02 00:52:31 +02:00
Peter Kokot
2ebef11e83 Update http links to https and sync www.php.net URLs (#14854) 2024-07-07 04:23:08 +02:00
Ilija Tovilo
cb55588a7e Skip online tests by default
Fixes GH-14058
Closes GH-14070
2024-04-30 14:10:46 +02:00
Ilija Tovilo
cd66fcc68b Add request_parse_body() function
RFC: https://wiki.php.net/rfc/rfc1867-non-post

This function allows populating the $_POST and $_FILES globals for non-post
requests. This avoids manual parsing of RFC1867 requests.

Fixes #55815
Closes GH-11472
2024-02-08 12:08:07 +01:00
Ilija Tovilo
d8df700e45 Merge branch 'PHP-8.3'
* PHP-8.3:
  Fix run-tests.php differ calculateCommonSubsequence for EXPECTF
2024-01-08 13:36:51 +01:00
Ilija Tovilo
379e913e1a Fix run-tests.php differ calculateCommonSubsequence for EXPECTF
calculateCommonSubsequence should not contain regexes.

Fixes GH-13083
Closes GH-13084
2024-01-08 13:36:29 +01:00
Jorg Adam Sowa
60abd94bf2 Changed value passed to show_start to $start_timestamp (#13064) 2024-01-02 10:36:52 +01:00
Jorg Adam Sowa
948b2bc211 Add miliseconds do the test time output (#12729)
Also replaced microtime() with hrtime()
2023-12-29 16:03:30 +00:00
Kamil Tekiela
36a5f4ffaf Improve code quality in run-tests.php (#12889) 2023-12-07 02:24:31 +01:00
Ilija Tovilo
2312637496 Retry tests on deadlock
Closes GH-12693
2023-11-22 20:39:29 -06:00
Ilija Tovilo
9bdd0f0de9 Automatically mark tests as flaky
Marking all of these tests as flaky is annoying, so attempt to recognize them
automatically.

Closes GH-12638
2023-11-22 20:39:29 -06:00
Ilija Tovilo
52535ba08c Merge branch 'PHP-8.3'
* PHP-8.3:
  Retry tests on deadlock
2023-11-16 16:03:08 +01:00
Ilija Tovilo
ed927365c2 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Retry tests on deadlock
2023-11-16 16:02:58 +01:00
Ilija Tovilo
58712e0698 Retry tests on deadlock
Closes GH-12693
2023-11-16 16:02:20 +01:00
Ilija Tovilo
7bcfac9e65 Merge branch 'PHP-8.3'
* PHP-8.3:
  Automatically mark tests as flaky
2023-11-15 13:22:43 +01:00
Ilija Tovilo
082219ba0e Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Automatically mark tests as flaky
2023-11-15 13:22:35 +01:00
Ilija Tovilo
6d59640980 Automatically mark tests as flaky
Marking all of these tests as flaky is annoying, so attempt to recognize them
automatically.

Closes GH-12638
2023-11-15 13:21:58 +01:00