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

143437 Commits

Author SHA1 Message Date
Daniel Scherzer
685e99655a Update versions for PHP 8.5.0 php-8.5.0 2025-11-18 00:02:20 -08:00
Volker Dusch
cc1e300d4d [ci skip] Consolidate NEWS for PHP 8.5.0 2025-11-17 20:47:04 +01:00
Daniel Scherzer
72044302e5 Update NEWS for GH-20384 2025-11-11 15:59:06 -08:00
Daniel Scherzer
23b6b0dbd3 Revert "Deprecate returning non-string values from a user output handler (#18932)" (#20455)
This partially reverts commit d8577d9bfb, and
reverts parts of 07f1cfd9b0.

(cherry picked from commit 2711864e82)
2025-11-11 15:57:42 -08:00
Daniel Scherzer
ba7f360b5f Update NEWS for PHP 8.5.0RC5 ext/uri backports 2025-11-11 10:02:43 -08:00
Máté Kocsis
1683b8f3dd ext/uri: Fix the distinction between an empty and a missing query/fragment for WHATWG URLs (#20208)
(cherry picked from commit 88285c3333)
2025-11-11 09:59:32 -08:00
Tim Düsterhus
dc845f0e19 uri: Update to uriparser-0.9.9-59-gc3b4956 (#20437)
This is specifically to backport uriparser/uriparser#276.

Fixes php/php-src#20431.

(cherry picked from commit 8a0c300d02)
2025-11-11 09:57:54 -08:00
Niels Dossche
be0d9cbfd2 Fix nightly failure due to OnChangeMemoryLimit changes (#20450)
(cherry picked from commit ee9773bdc6)
2025-11-11 08:55:21 -08:00
manuel
7e477f42e7 Commit the actual fix for GH-17951
Sorry, my (ilutov's) bad. I reverted the change to verify the test, but forgot
to undo before pushing.

(cherry picked from commit 9b752a3d2b)
2025-11-11 08:54:14 -08:00
manuel
192847c6d7 memory_limit is not always limited by max_memory_limit
Make sure to always duplicate max_memory_limit ini value. Otherwise the alter
ini routine may assume the value hasn't been overwritten, resulting in the
user-specified value being set after the on_modify handler has run.

Fixes GH-17951
Closes GH-19963

(cherry picked from commit 37e82ea5d0)
2025-11-11 08:51:42 -08:00
Daniel Scherzer
de8cd45ed1 [ci skip] Update NEWS for PHP 8.5.0 RC5 2025-11-11 08:40:11 -08:00
Jakub Zelenka
f03696a891 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  PHP-8.3 is now for PHP 8.3.29-dev
2025-11-04 15:16:01 +01:00
Jakub Zelenka
77c99769f9 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  PHP-8.3 is now for PHP 8.3.29-dev
2025-11-04 15:15:29 +01:00
Jakub Zelenka
17f253a1f2 PHP-8.3 is now for PHP 8.3.29-dev 2025-11-04 15:13:43 +01:00
Niels Dossche
7bc8ecb623 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  random: Fix memory leak when serialization fails (#20383)
2025-11-04 08:33:44 +01:00
Niels Dossche
3c1c7a0fe4 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  random: Fix memory leak when serialization fails (#20383)
2025-11-04 08:33:31 +01:00
Niels Dossche
720e006982 random: Fix memory leak when serialization fails (#20383)
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
2025-11-04 08:32:22 +01:00
Gina Peter Banyard
3afac4c7f1 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix include paths for new pgsql tests
2025-11-04 04:42:53 +00:00
Gina Peter Banyard
14ed75e560 Fix include paths for new pgsql tests 2025-11-04 04:42:42 +00:00
Gina Peter Banyard
7c6affd617 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Update NEWS for recent pgsql bugfix
  ext/pgsql: Fix segfaults when attempting to fetch row into a non-instantiable class name (#20180)
2025-11-04 00:09:44 +00:00
Gina Peter Banyard
afca514c3b Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Update NEWS for recent pgsql bugfix
  ext/pgsql: Fix segfaults when attempting to fetch row into a non-instantiable class name (#20180)
2025-11-04 00:08:42 +00:00
Gina Peter Banyard
bf599d4059 Update NEWS for recent pgsql bugfix 2025-11-04 00:06:16 +00:00
Gina Peter Banyard
94dc6ae871 ext/pgsql: Fix segfaults when attempting to fetch row into a non-instantiable class name (#20180)
Also fix Windows CI with Postgres and CLEAN sections

---------

Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
2025-11-04 00:04:30 +00:00
Daniel Scherzer
e5c6456d37 Fix GH-20377: emit assignment for all final promoted properties (#20378)
Previously, the assignment op line was only emitted when one of the other flags
allowed for promoted properties (visibility, set visibility, or readonly) was
also used, or when the property had hooks. The property was still added to the
class, but the magical assignment `$this->prop = $prop` was missing. Add that
assignment even when no visibility is explicitly specified, and a test to
confirm the fix.
2025-11-03 14:36:57 -08:00
Niels Dossche
f4b27bdc0d NEWS for GH-20341 2025-11-03 23:01:50 +01:00
Niels Dossche
ed3e48b506 Revert "Upgrade bundled pcre2lib to 10.45 (#17825)"
This reverts commit e92848789a.
2025-11-03 23:01:50 +01:00
Niels Dossche
3ef966ceb7 Revert "Update pcre2lib from 10.45 to 10.46 (#19618)"
This reverts commit 84b78c047e.
2025-11-03 23:01:50 +01:00
Máté Kocsis
cf3b30581d Reorganize ext/uri tests - parsing (#20340) 2025-11-03 21:51:56 +01:00
Niels Dossche
afb7b97d44 Fixes to uri serialization (#20369)
- Incoming data should never have an INDIRECT element, that would be a
  violation of the rules wrt the INDIRECT types. Therefore there was
  never a need to use the _ind variant of the hash table find.
- It doesn't matter now because there are no properties; but the
  get_properties handler cannot be used in the output of a __serialize
  call as that would expose INDIRECT elements.
  To prevent issues in the future, make it an empty array as a
  placeholder. If in the future properties are added, then this will
  hard fail instead of silently fail with INDIRECTs.
2025-11-02 23:52:32 +01:00
Máté Kocsis
51ca716853 Fix latest ext/uri NEWS entry
[skip-ci]
2025-11-02 23:38:23 +01:00
Máté Kocsis
e386864b5a Fix the distinction between missing and empty username/password for RFC3986 URIs (#20335) 2025-11-02 23:33:58 +01:00
Tim Düsterhus
a22793db2b uri: Unify exception testing for modification tests (#20368)
Catch any Throwable and print the exact class name.
2025-11-02 22:44:25 +01:00
David Carlier
0e9c39deb9 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  ext/zip: fix memory leak when encryption is passed as userland array option.
2025-11-02 21:17:05 +00:00
David Carlier
6d12688c9e Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  ext/zip: fix memory leak when encryption is passed as userland array option.
2025-11-02 21:16:55 +00:00
David Carlier
55f7303d73 ext/zip: fix memory leak when encryption is passed as userland array option.
Similar issue fixed in GH-19936.

close GH-20363
2025-11-02 21:15:07 +00:00
Tim Düsterhus
81f6ba5503 uri: Use the “includes credentials” rule for WhatWg user/password getters (#20303)
* uri: Use the “includes credentials” rule for WhatWg user/password getters

The URL serializing algorithm from the WHATWG URL Standard uses an “includes
credentials” rule to decide whether or not to include the `@` in the output,
indicating the presence of a userinfo component in RFC 3986 terminology. Use
this rule to determine whether or not an empty username or password should be
returned as the empty string (present but empty) or NULL (not present).

* uri: Use ZVAL_STRINGL_FAST in `whatwg_(username|password)_read()`

This nicely sidesteps the undefined behavior with passing a `(NULL, 0)` pair
without needing manual logic.

* NEWS
2025-11-01 14:15:06 +01:00
Niels Dossche
cda8daaccf Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Update zlib test to use separate file for flock()
2025-11-01 09:30:54 +01:00
Niels Dossche
981b8c65ed Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Update zlib test to use separate file for flock()
2025-11-01 09:30:11 +01:00
Niels Dossche
be8c8a9d6b Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Update zlib test to use separate file for flock()
2025-11-01 09:30:04 +01:00
Niels Dossche
df423e4f08 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Update zlib test to use separate file for flock()
2025-11-01 09:29:55 +01:00
Niels Dossche
c3d6bf65d5 Update zlib test to use separate file for flock()
This should prevent the nightly failures that fail with permission
denied on platforms with mandatory locks.

Closes GH-20351.
2025-11-01 09:29:45 +01:00
Ilija Tovilo
ab0a9155d4 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Reset Z_EXTRA_P(op2) of ZEND_INIT_FCALL for opcache file cache
2025-10-31 17:50:42 +01:00
Ilija Tovilo
50c7f498b9 Reset Z_EXTRA_P(op2) of ZEND_INIT_FCALL for opcache file cache
The offset becomes stale if the environment changes. We're currently relying on
other factors in the environment staying constant, e.g. send types. But this
seems to be the worst offender.

Partially addresses GH-17733
Closes GH-20328
2025-10-31 17:50:02 +01:00
Ilija Tovilo
80a6adcbb0 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix EG(current_execute_data) introduced in 1292037
2025-10-31 17:36:24 +01:00
Ilija Tovilo
a5e1baf6b8 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix EG(current_execute_data) introduced in 1292037
2025-10-31 17:36:15 +01:00
Ilija Tovilo
5518165499 Fix EG(current_execute_data) introduced in 1292037
Fixes OSS-Fuzz #456317305
2025-10-31 17:34:25 +01:00
Niels Dossche
1dd866d89c Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-20302: Freeing a phar alias may invalidate PharFileInfo objects
2025-10-31 08:07:28 +01:00
Niels Dossche
ae7117b177 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix GH-20302: Freeing a phar alias may invalidate PharFileInfo objects
2025-10-31 08:05:01 +01:00
Niels Dossche
6fe40de6e3 Fix GH-20302: Freeing a phar alias may invalidate PharFileInfo objects
Closes GH-20345.
2025-10-31 08:04:25 +01:00
Niels Dossche
2e0ab274ef Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  [ci skip] Fix CODEOWNERS name
2025-10-30 19:13:20 +01:00