Sujan Miya
bda37c1161
[skip ci] Fix typo in CODING_STANDARDS.md (GH-20364)
2025-11-03 15:30:52 +01:00
Jakub Zelenka
5151b9d8d6
Add test for so_reuseport stream socket option
2025-11-03 13:39:18 +01:00
David Carlier
f900035b27
network: on freebsd using SO_REUSEPORT_LB for a better distribution.
...
SO_REUSEPORT on FreeBSD acts differently as the underlying semantic
is different (as it predates Linux) since it s more for UDP/multicasts.
The SO_REUSEPORT_LB flag, however, uses load balancing for group
of address:port combinations which is how Linux is implemented.
Co-authored-by: Jakub Zelenka <bukka@php.net >
2025-11-03 13:39:18 +01:00
Jakub Zelenka
aead67d0bb
Add so_reuseaddr stream socket context option
...
This is to allow disabling of SO_REUSEADDR that is enabled by default.
To achieve better compatibility on Windows SO_EXCLUSIVEADDRUSE is set
if so_reuseaddr is false.
Closes GH-19967
2025-11-03 11:44:09 +01:00
Niels Dossche
f00a30102c
dom: Minor cleanup in text.c ( #20372 )
2025-11-03 08:07:38 +01:00
Niels Dossche
49c3ff6c89
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Fixes to uri serialization (#20369 )
2025-11-02 23:52:47 +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
Niels Dossche
197a455bc0
sqlite3: remove nonsensical return_value dtor ( #20360 )
2025-11-02 23:47:10 +01:00
Máté Kocsis
c1e7f08213
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Fix latest ext/uri NEWS entry
2025-11-02 23:38:43 +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
16bab75a25
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Fix the distinction between missing and empty username/password for RFC3986 URIs (#20335 )
2025-11-02 23:34:54 +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
d2a6773599
Merge branch 'PHP-8.5'
...
* PHP-8.5:
uri: Unify exception testing for modification tests (#20368 )
2025-11-02 22:44:34 +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
7a93d2ca6a
Merge branch 'PHP-8.5'
...
* PHP-8.5:
ext/zip: fix memory leak when encryption is passed as userland array option.
2025-11-02 21:17:19 +00: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
David CARLIER
83e3a6d903
ext/intl: migrate C code to C++ step 4. ( #20170 )
2025-11-02 21:10:03 +00:00
Peter Kokot
8d1a42fd10
ext/zip: Sync remaining parts for libzip >= 1.0.0 ( #20365 )
...
Follow up of GH-20355
2025-11-02 20:45:04 +01:00
Niels Dossche
9300a5076d
Reduce code size of strripos() ( #20358 )
...
Reduction of 1325 -> 1213 on x86-64 with GCC 15.2.1.
2025-11-02 15:07:15 +01:00
Niels Dossche
4bd3a9006e
Use release_ex consistently in php_strtr_array_ex() ( #20359 )
...
Reduces code size from 2056 -> 2006 on x86-64 with GCC 15.2.1.
2025-11-02 15:05:44 +01:00
David Carlier
a979e9f897
ext/zip: lifting libzip minimum support.
...
0.11 dates back from 2013 whereas 1.0.0 is from 2015.
Thus, simplifying the extension removing unlikely old api code usage.
centos 7 can always uses an alternative repository (e.g. remi's);
solaris 10 can access the 1.5.2 release via OpenCSW.
close GH-20355
2025-11-01 23:37:54 +00:00
Tim Düsterhus
82249dcbf4
Merge branch 'PHP-8.5'
...
* PHP-8.5:
uri: Use the “includes credentials” rule for WhatWg user/password getters (#20303 )
2025-11-01 14:15:29 +01: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
2f0a0c598c
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Update zlib test to use separate file for flock()
2025-11-01 09:30:59 +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
2d45069560
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Reset Z_EXTRA_P(op2) of ZEND_INIT_FCALL for opcache file cache
2025-10-31 17:50:49 +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
a6da3e6500
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Fix EG(current_execute_data) introduced in 1292037
2025-10-31 17:36:29 +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
455893eca1
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Fix GH-20302: Freeing a phar alias may invalidate PharFileInfo objects
2025-10-31 08:08:26 +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
425b97e0b6
phar: Remove unused macro ( #20343 )
2025-10-30 22:45:52 +01:00
Niels Dossche
2523491fd5
Merge branch 'PHP-8.5'
...
* PHP-8.5:
[ci skip] Fix CODEOWNERS name
2025-10-30 19:13:26 +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
Niels Dossche
0929f7376d
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
[ci skip] Fix CODEOWNERS name
2025-10-30 19:12:45 +01:00
Niels Dossche
a585ace762
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
[ci skip] Fix CODEOWNERS name
2025-10-30 19:12:39 +01:00
Niels Dossche
4098613012
[ci skip] Fix CODEOWNERS name
2025-10-30 19:11:57 +01:00
Gina Peter Banyard
c669fbf370
Zend/zend_compile: add const qualifiers
2025-10-30 12:02:43 +00:00
Gina Peter Banyard
ee40791aff
Zend/zend_compile.c: remove unused fbc parameter of zend_try_compile_special_func_ex()
2025-10-30 12:02:43 +00:00