Commit Graph

396 Commits

Author SHA1 Message Date
David CARLIER
0086815773
adding myself to ext/pcntl ext. (#13901) 2024-04-07 09:35:36 +01:00
Bob Weinand
18496cc3d4 Merge branch 'PHP-8.3' 2024-04-02 18:13:10 +02:00
Bob Weinand
dbaeb62ab1 Merge branch 'PHP-8.2' of github.com:php/php-src into PHP-8.3 2024-04-02 18:11:55 +02:00
Bob Weinand
e7462bff19
Run one testsuite with observers enabled in CI (#13869)
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
2024-04-02 18:11:02 +02:00
Niels Dossche
00c6d538ab
Fix GH-13834: Applying non-zero offset 36 to null pointer in zend_jit.c (#13846)
* Fix GH-13834: Applying non-zero offset 36 to null pointer in zend_jit.c

ssa_op can be NULL in function JIT. Doing pointer arithmetic on a NULL
pointer is undefined behaviour. Undefined behaviour can be dangerous
because the optimizer may assume then that the variable is not actually
NULL.

To solve this:
1. Add ADVANCE_SSA_OP() to safely add an offset to ssa_op in zend_jit.c
2. For inference, add an extra offset argument to the helper functions.

To reproduce this, use Clang (not GCC) on a test like
sapi/cli/tests/gh12363.phpt (or other tests also work).

* Remove -fno-sanitize=pointer-overflow flag from CI

* Fix NULL pointer offsets added to the stack_map

* Fix an offset add on a potentially NULL ssa->ops

* Fix NULL pointer arithmetic in zend_range_info()

* Address review comments
2024-04-01 13:37:15 +02:00
Ayesh Karunaratne
a4534fafac ext/openssl: Remove kerberos support
Co-authored-by: Peter Kokot <peterkokot@gmail.com>
2024-03-23 15:12:06 +00:00
Ilija Tovilo
8dbc4b61c3
Disable ASLR for benchmark (#13769) 2024-03-20 17:20:29 +01:00
Ilija Tovilo
5b7d45822a
Fix missing llvm deps inside docker 2024-03-19 17:34:18 +01:00
Ilija Tovilo
25a8f155f2
Merge branch 'PHP-8.3'
* PHP-8.3:
  Fix ASan build
2024-03-19 17:17:21 +01:00
Ilija Tovilo
697d1a1c63
Fix ASan build
See https://github.com/actions/runner-images/issues/9491#issuecomment-1989718917

The mentioned workaround doesn't work for us because we run ASan inside Docker.
Instead, we switch to ubuntu-20.04 as the host. The docker setup itself remains
the same.

Closes GH-13757
2024-03-19 17:15:36 +01:00
Nikita Popov
67184f5445
Fix PdoSqlite::loadExtension() test (#13736)
The test contained a syntax error and an incorrect use of loadExtension(), which returns void not bool.

Also install the necessary package in CI, so it gets tested there.
2024-03-17 22:27:09 +01:00
Saki Takamachi
94d18cb1d3
[skip ci] CODEOWNERS 2024-03-14 07:47:53 +09:00
Máté Kocsis
577db99462
Verify stub aliases in CI (#13682)
In the same time, let's not verify implementation aliases since they may now legitimately differ from their aliased function/method counterparts (think about the ext/dom refactoring where e.g. many return type declarations have changed). Additionally, unnecessary `@no-verify` tags are cleaned up.
2024-03-13 23:32:35 +01:00
Shivam Mathur
edbef3e4ac Merge branch 'PHP-8.3'
* PHP-8.3:
Fix brew action (#13659)
We patch brew to ensure it overwrites files while linking the dependencies
2024-03-10 20:23:15 +05:30
Shivam Mathur
59e8c267fa Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
    Fix brew action (#13659)
    We patch brew to ensure it overwrites files while linking the dependencies
2024-03-10 20:18:47 +05:30
Shivam Mathur
0e05f26be6
Fix brew action (#13659)
We patch brew to ensure it overwrites files while linking the dependencies
2024-03-10 20:11:24 +05:30
Peter Kokot
893fdda349 Merge branch 'PHP-8.3'
* PHP-8.3:
  [skip ci] Add CODEOWNERS in PHP-8.2 branch
2024-03-09 01:30:15 +01:00
Peter Kokot
72197e36b8 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  [skip ci] Add CODEOWNERS in PHP-8.2 branch
2024-03-09 01:28:55 +01:00
Peter Kokot
a284c3e873 [skip ci] Add CODEOWNERS in PHP-8.2 branch
GitHub at the time of this writing, requires CODEOWNERS file to be
present in each branch for the pull request reviews. This adds adjusted
CODEOWNERS file from current master branch with updated requests and
changes in PHP-8.3 branch.

Closes GH-13623
2024-03-09 01:27:54 +01:00
Peter Kokot
540e37fd44 Merge branch 'PHP-8.3'
* PHP-8.3:
  Move CODEOWNERS to .github (#13591)
2024-03-07 22:44:59 +01:00
Peter Kokot
88e90c6f83
Move CODEOWNERS to .github (#13591)
The CODEOWNERS file is specific to GitHub interface and can be located
in .github, docs or in project root. It makes the php-src root directory
a bit more browseable.
2024-03-07 22:44:31 +01:00
Saki Takamachi
a31edaa99b
Merge branch 'PHP-8.3'
* PHP-8.3:
    Removed `REPORT_EXIT_STATUS=no` in libmysql tests
2024-02-29 08:49:53 +09:00
Saki Takamachi
116166cd30
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Removed `REPORT_EXIT_STATUS=no` in libmysql tests
2024-02-29 08:49:04 +09:00
Saki Takamachi
99688dbe7a
Removed REPORT_EXIT_STATUS=no in libmysql tests 2024-02-29 08:41:36 +09:00
Jakub Zelenka
6f258f0cd0
Merge branch 'PHP-8.3' 2024-02-27 22:04:36 +00:00
Jakub Zelenka
4dc8c08acd
Merge branch 'PHP-8.2' into PHP-8.3 2024-02-27 22:04:05 +00:00
Jakub Zelenka
3d4b36fc9c
CI: Continue on error if Caddy download fails
Closes GH-13542
2024-02-27 22:03:04 +00:00
Ayesh Karunaratne
75ef03e742
CI: Remove ext/imap dependencies (#13484)
Now that ext/imap is unbundled, `libc-client-dev*` packages are no longer necessary.
2024-02-24 13:24:01 +01:00
Ayesh Karunaratne
ec9ae1ec1b
CI: Fix labeler.yml file to support actions/labeler@v5 (#13459) 2024-02-21 18:53:14 +01:00
Ayesh Karunaratne
7ed26c01f5
GitHub Actions: Update action versions to avoid node:16 warnings (#13453)
Note 16 is now EOL, so old GitHub Actions that use node 16 now triggers a warning.

This updates all existing workflows except `dwieeb/needs-reply` to their latest versions.
2024-02-21 13:16:25 +01:00
Ilija Tovilo
f332e53082
[skip ci] Fix docs glob pattern
* does not refer to nested files.
2024-02-18 20:39:00 +01:00
Ilija Tovilo
1beb778b3a
Merge branch 'PHP-8.3'
* PHP-8.3:
  [skip ci] Fix paths-ignore glob pattern
2024-02-18 20:38:26 +01:00
Ilija Tovilo
3d2f9883ba
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  [skip ci] Fix paths-ignore glob pattern
2024-02-18 20:38:11 +01:00
Ilija Tovilo
a18cf333ba
[skip ci] Fix paths-ignore glob pattern
* does not work for nested files.
2024-02-18 20:37:26 +01:00
Ilija Tovilo
19d2b84788
Create book for docs
Closes GH-13338
2024-02-18 12:16:31 +01:00
Ilija Tovilo
ec9b68cb6a
[skip ci] Skip JIT tests for Apple Silicon + ZTS
JIT will be disabled for Apple Silicon + ZTS anyway. See:

6db95512b4
2024-02-18 00:19:47 +01:00
Saki Takamachi
f62f6a6d4b
Follow-up to remove IMAP ext (#13248)
Fixed and optimized tests that depend on imap in standard ext tests.

Also, the location of the setup script for hmailserver has changed.
2024-02-09 21:32:07 +09:00
Peter Kokot
3e237ecfb3
Remove remainings of recent oci extensions removal (#13352)
Following a4d64b2605
2024-02-08 18:04:00 +01:00
Derick Rethans
a4d64b2605
Removed ext/oci8 and ext/pdo_oci (#13327)
* Removed ext/oci8 and ext/pdo_oci

They now live in their own repositories:

https://github.com/php/pecl-database-oci8
https://github.com/php/pecl-database-pdo_oci

As per: https://wiki.php.net/rfc/unbundle_imap_pspell_oci8
2024-02-07 15:34:39 +00:00
Ilija Tovilo
294c9ec36c
[skip ci] Skip push to forks
Creating PRs against forks requries having up-to-date target branches. Pushing
to these currently triggers CI, which is useless as this commit was already
tested upstream. Contributions are tested via pull request.
2024-02-07 13:17:40 +01:00
Shivam Mathur
d8aa6e457f
Add macos-14 to the push and nightly workflows (#13299)
* Add macos-14 to the push workflow

* Remove hardcoded brew path in configure-macos action

* Include architecture in macos job name

* Add os to ccache-action in macos job

* Add libsodium in brew action

Since we build with the configuration option --with-sodium, adding libsodium to make sure it is installed

* Add fail-fast to macos matrix

* Add macos-14 to the nightly workflow

* Fix adding bison to PATH in workflows

* Fix architecture

* Use version to compare in nightly_matrix.php

* Make sure test-macos artifacts have unique name

* Update .github/nightly_matrix.php

Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>

---------

Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
2024-02-02 14:02:57 +05:30
Tim Düsterhus
c8c9fc3f69
Merge branch 'PHP-8.3'
* PHP-8.3:
  ci: update caddy job to use GitHub Releases
2024-02-01 00:12:36 +01:00
Tim Düsterhus
26153eec02
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  ci: update caddy job to use GitHub Releases
2024-02-01 00:12:22 +01:00
Tim Düsterhus
95c5c407ee
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  ci: update caddy job to use GitHub Releases
2024-02-01 00:12:13 +01:00
Ayesh Karunaratne
4922b9eb7d
ci: update caddy job to use GitHub Releases
The caddyserver.com download page is unreliable, and it also recommends to use GitHub releases instead.

Closes #13296
2024-02-01 00:11:54 +01:00
Tim Düsterhus
bba24f04a7
Update GitHub Action workflows to actions/upload-artifact@v4 (master)
This applies the upgrade for workflows that have been added in the master
branch.
2024-01-31 23:36:07 +01:00
Tim Düsterhus
91fde8b34b
Merge branch 'PHP-8.3'
* PHP-8.3:
  Update GitHub Action workflows to `actions/upload-artifact@v4` (#13297)
2024-01-31 23:35:10 +01:00
Tim Düsterhus
b82d25b7b6
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Update GitHub Action workflows to `actions/upload-artifact@v4` (#13297)
2024-01-31 23:34:50 +01:00
Tim Düsterhus
e209506bfa
Update GitHub Action workflows to actions/upload-artifact@v4 (#13297)
Keep this up to date in all non-security-only branches, because the node.js
runtime for older versions might get deprecated in the future and fixing this
for all branches at once is easier.
2024-01-31 23:34:28 +01:00
Jorg Adam Sowa
0a162394c8
Enable xdebug extension again on nightly (#13192) 2024-01-23 17:36:45 +01:00