David Carlier
509cb06dc2
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Fix GH-20554: php_cli_server() get http status as string build issue.
2025-11-22 22:26:10 +00:00
David Carlier
5562e5558a
Merge branch 'PHP-8.4' into PHP-8.5
...
* PHP-8.4:
Fix GH-20554: php_cli_server() get http status as string build issue.
2025-11-22 22:26:01 +00:00
David Carlier
30fbcf9d7e
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-20554: php_cli_server() get http status as string build issue.
2025-11-22 22:25:51 +00:00
David Carlier
9149c35514
Fix GH-20554: php_cli_server() get http status as string build issue.
...
due to the signature of this helper it needs to be const also
bsearch key argument needs to be too.
close GH-20556
2025-11-22 22:25:33 +00:00
David Carlier
94e65d301b
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Fix GH-20551: imagegammacorrect out of range gamma value.
2025-11-22 22:23:53 +00:00
David Carlier
4d71d8a454
Merge branch 'PHP-8.4' into PHP-8.5
...
* PHP-8.4:
Fix GH-20551: imagegammacorrect out of range gamma value.
2025-11-22 22:23:41 +00:00
David Carlier
30cb1998ae
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-20551: imagegammacorrect out of range gamma value.
2025-11-22 22:22:50 +00:00
David Carlier
f88d247ce2
Fix GH-20551: imagegammacorrect out of range gamma value.
...
close GH-20552
2025-11-22 22:22:27 +00:00
Niels Dossche
3abdef26fe
VM: Reuse result variable in ICALL_0 implementation ( #20561 )
...
This reduces the assembly size from 52 to 46 bytes on x86-64 with GCC
15.2.1, strangely.
Before:
```
<+0>: sub $0x8,%rsp
<+4>: movslq 0x10(%r15),%rax
<+8>: movslq 0x10(%r15),%rdi
<+12>: mov %r15,(%r14)
<+15>: mov 0x14(%r15),%edx
<+19>: movl $0x1,0x8(%r14,%rax,1)
<+28>: mov 0x140695d(%rip),%rax # 0x1addfe0 <zend_flf_handlers>
<+35>: add %r14,%rdi
<+38>: call *(%rax,%rdx,8)
<+41>: mov (%r14),%r15
<+44>: add $0x8,%rsp
<+48>: add $0x20,%r15
<+52>: ret
```
After:
```
<+0>: sub $0x8,%rsp
<+4>: movslq 0x10(%r15),%rdi
<+8>: mov 0x14(%r15),%edx
<+12>: mov %r15,(%r14)
<+15>: mov 0xace58a(%rip),%rax # 0x10d9840 <zend_flf_handlers>
<+22>: add %r14,%rdi
<+25>: movl $0x1,0x8(%rdi)
<+32>: call *(%rax,%rdx,8)
<+35>: mov (%r14),%r15
<+38>: add $0x8,%rsp
<+42>: add $0x20,%r15
<+46>: ret
```
2025-11-22 17:58:41 +01:00
Remi Collet
839803847e
Merge branch 'PHP-8.5'
...
* PHP-8.5:
NEWS
NEWS
NEWS
Fix GH-20528: Regression breaks mysql connexion using an IPv6 address enclosed in square brackets
2025-11-21 09:21:19 +01:00
Remi Collet
e2219488ba
NEWS
2025-11-21 09:21:03 +01:00
Remi Collet
7bdeedb430
Merge branch 'PHP-8.4' into PHP-8.5
...
* PHP-8.4:
NEWS
NEWS
Fix GH-20528: Regression breaks mysql connexion using an IPv6 address enclosed in square brackets
2025-11-21 09:20:41 +01:00
Remi Collet
74c4510da9
NEWS
2025-11-21 09:20:22 +01:00
Remi Collet
c9de303087
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
NEWS
Fix GH-20528: Regression breaks mysql connexion using an IPv6 address enclosed in square brackets
2025-11-21 09:19:56 +01:00
Remi Collet
769f319867
NEWS
2025-11-21 09:19:38 +01:00
Remi Collet
9d71c1e0b6
Fix GH-20528: Regression breaks mysql connexion using an IPv6 address enclosed in square brackets
2025-11-21 09:17:20 +01:00
Niels Dossche
ca7f556002
xml: Use strlen() ( #20544 )
2025-11-20 21:54:38 +01:00
David Carlier
586eba94d8
[skip ci] Forgotten NEWS update
2025-11-20 20:24:31 +00:00
David CARLIER
4e2bd0c5b7
ext/soap: SoapClient::__setCookie() to deal with name as digits. ( #20526 )
2025-11-20 19:22:15 +00:00
Niels Dossche
c0cf84158f
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Fix GH-20492: mbstring compile warning due to non-strings
Fix GH-20491: SLES15 compile error with mbstring oniguruma
2025-11-20 19:26:54 +01:00
Niels Dossche
929e7177f1
Merge branch 'PHP-8.4' into PHP-8.5
...
* PHP-8.4:
Fix GH-20492: mbstring compile warning due to non-strings
Fix GH-20491: SLES15 compile error with mbstring oniguruma
2025-11-20 19:26:48 +01:00
Niels Dossche
10ac41f158
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-20492: mbstring compile warning due to non-strings
Fix GH-20491: SLES15 compile error with mbstring oniguruma
2025-11-20 19:23:36 +01:00
Niels Dossche
159ef1401c
Fix GH-20492: mbstring compile warning due to non-strings
...
This is a partial backport of ea69276f , but without changing public
headers as that's not allowed at this point.
Closes GH-20494.
2025-11-20 19:17:55 +01:00
Niels Dossche
a1912e3cdd
Fix GH-20491: SLES15 compile error with mbstring oniguruma
...
The issue is specific to SLES15.
Arguably this should be reported to them as it seems to me they meddled
with the oniguruma source code.
The definition in oniguruma.h on that platform looks like this (same as upstream):
```c
ONIG_EXTERN
int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...));
```
Where `PV_` is defined as (differs):
```c
#ifndef PV_
#ifdef HAVE_STDARG_PROTOTYPES
# define PV_(args) args
#else
# define PV_(args) ()
#endif
#endif
```
So that means that `HAVE_STDARG_PROTOTYPES` is unset.
This can be set if we define `HAVE_STDARG_H`,
which we can do because PHP requires at least C99 in which the header
is always available.
We could also use an autoconf check, but this isn't really necessary as
it will always succeed.
2025-11-20 19:17:17 +01:00
Peter Kokot
d9d55f011d
ext/gd: Enable HAVE_GD_GET_INTERPOLATION ( #20535 )
...
Bundled libgd has gdImageGetInterpolationMethod() function. It is
available as of libgd 2.1.1.
2025-11-20 15:15:19 +01:00
Gina Peter Banyard
d40ae97f52
Zend language scanner: minor refactorings ( #20480 )
...
* Use uint32_t type
* Remove some useless size_t casts
* Explain why we include zend_globals.h
2025-11-19 20:42:31 +00:00
Gina Peter Banyard
d026e2bca1
ext/standard/array.c: add tests when extracting negative keys
2025-11-19 20:41:48 +00:00
Gina Peter Banyard
095fd26c95
ext/standard/array.c: add const qualifiers for extract() related functions
2025-11-19 20:41:48 +00:00
Gina Peter Banyard
8587bb2f93
ext/standard/array.c: refactor php_prefix_varname()
2025-11-19 20:41:48 +00:00
Gina Peter Banyard
6cd80f715f
ext/standard/array.c: assert on conditions which are always false
2025-11-19 20:41:48 +00:00
Gina Peter Banyard
abc1910b4f
ext/standard/array.c: refactor php_valid_var_name()
2025-11-19 20:41:48 +00:00
Máté Kocsis
15ca366498
Merge branch 'PHP-8.5'
...
* PHP-8.5:
Fix GH-20366 ext/uri: Do not throw ValueError on null-byte (#20489 )
2025-11-19 20:43:02 +01:00
Máté Kocsis
9743977f92
Fix GH-20366 ext/uri: Do not throw ValueError on null-byte ( #20489 )
2025-11-19 20:41:27 +01:00
Niels Dossche
e28e891791
Merge branch 'PHP-8.5'
...
* PHP-8.5:
libxml: Fix input buffer deprecation
2025-11-19 18:41:56 +01:00
Niels Dossche
aa9619e437
Merge branch 'PHP-8.4' into PHP-8.5
...
* PHP-8.4:
libxml: Fix input buffer deprecation
2025-11-19 18:41:50 +01:00
Niels Dossche
6eb10dc433
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
libxml: Fix input buffer deprecation
2025-11-19 18:41:43 +01:00
Niels Dossche
8c2407714f
libxml: Fix input buffer deprecation
...
While this fixed the last deprecation in ext/libxml, it's not a full
fix: The full fix would be to move to the context-specific APIs to
override the behaviour. However, that requires API/ABI incompatible
changes so that can't be done on a stable branch.
Closes GH-20525.
2025-11-19 18:41:28 +01:00
Niels Dossche
9762c446f0
Merge branch 'PHP-8.5'
...
* PHP-8.5:
zip: Don't truncate return value of zip_fread() with user sizes
2025-11-18 20:32:15 +01:00
Niels Dossche
a21783c73c
Merge branch 'PHP-8.4' into PHP-8.5
...
* PHP-8.4:
zip: Don't truncate return value of zip_fread() with user sizes
2025-11-18 20:31:31 +01:00
Niels Dossche
4eacb6de83
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
zip: Don't truncate return value of zip_fread() with user sizes
2025-11-18 20:31:15 +01:00
Niels Dossche
2f05830a5f
zip: Don't truncate return value of zip_fread() with user sizes
...
The return type has been zip_int64_t since 2009, so we shouldn't
truncate to an int because the user may have requested a size that won't
fit in an int.
Closes GH-20509.
2025-11-18 20:30:42 +01:00
David CARLIER
e929602ed0
ext/soap: HTTP request micro optimisations. ( #20516 )
...
smart string is a bit overkill for the cookie id here.
2025-11-18 18:32:59 +00:00
Niels Dossche
9c2c341fef
Merge branch 'PHP-8.5'
...
* PHP-8.5:
libxml: Fix some deprecations regarding input buffer/parser handling
2025-11-18 18:54:09 +01:00
Niels Dossche
39dc317f1f
Merge branch 'PHP-8.4' into PHP-8.5
...
* PHP-8.4:
libxml: Fix some deprecations regarding input buffer/parser handling
2025-11-18 18:54:03 +01:00
Niels Dossche
4401b03aa9
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
libxml: Fix some deprecations regarding input buffer/parser handling
2025-11-18 18:53:44 +01:00
Niels Dossche
6054a900ff
libxml: Fix some deprecations regarding input buffer/parser handling
...
Closes GH-20514.
2025-11-18 18:53:17 +01:00
Niels Dossche
4a12745705
xml: Optimize attribute array construction ( #20515 )
...
Attributes can't be numeric strings by the definition of the grammar, so
don't bother with the symbol table stuff.
2025-11-18 18:49:13 +01:00
Tim Düsterhus
1d4b53a36f
Merge branch 'PHP-8.5'
...
* PHP-8.5:
lexbor: Cherry pick "URL: fixed "use-after-poison" for an empty path entry."
2025-11-18 17:32:39 +01:00
Tim Düsterhus
7610527d75
lexbor: Cherry pick "URL: fixed "use-after-poison" for an empty path entry."
...
see lexbor/lexbor@9259b169e3
Fixes php/php-src#20502
Fixes php/php-src#20521
2025-11-18 17:32:07 +01:00
Ilija Tovilo
d750d30a62
Merge branch 'PHP-8.5'
...
* PHP-8.5:
[skip ci] Fix Symfony PHP requirements in community build
2025-11-18 00:52:42 +01:00