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

138154 Commits

Author SHA1 Message Date
Máté Kocsis
181ea64cda Reduce memory overhead of DatePeriod via virtual properties (#15598)
Related to https://github.com/php/php-src/issues/11644 and https://github.com/php/php-src/issues/13988
2024-09-27 22:54:40 +02:00
Gina Peter Banyard
8b0933b610 ext/ldap: Move server controls check prior to allocating modifications 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
5300f38b75 ext/ldap: Remove unnecessary scoping 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
647c24fb86 ext/ldap: Refactor traversal of modification values 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
21955a9a8d ext/ldap: Refactor looping of modifications array 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
8188e64223 ext/ldap: Refactor execution of batch command 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
0c7d85d173 ext/ldap: Use EMPTY_SWITCH_DEFAULT_CASE(); 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
cf043af8fc ext/ldap: Refactor verification of modification entry 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
3af914d858 ext/ldap: Fetch the values directly via hash API 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
d3dbcefcc8 ext/ldap: Join declaration and assignments
Rename some of the variables
This also reduces the scope of some of these variables
2024-09-27 19:38:14 +01:00
Gina Peter Banyard
0a39b48acc ext/ldap: Use zend_array_is_list() API to check "values" array 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
6f50850e76 ext/ldap: Use zend_*_has_nul_byte() APIs
And also make them throw ValueErrors instead of TypeErrors
2024-09-27 19:38:14 +01:00
Gina Peter Banyard
30b44f534a [skip ci] ext/ldap: Clean-up comment 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
7c8fea9ce0 ext/ldap: Add test for reference in modification array 2024-09-27 19:38:14 +01:00
Gina Peter Banyard
25b631d72b ext/ldap: Add test cases for (Value|Type)Errors in ldap_modify_batch() 2024-09-27 19:38:14 +01:00
Christoph M. Becker
ee3e10af78 Merge branch 'PHP-8.4'
* PHP-8.4:
  Fix failing soap tests on Windows
2024-09-27 19:59:55 +02:00
Christoph M. Becker
e014b5f506 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix failing soap tests on Windows
2024-09-27 19:59:30 +02:00
Christoph M. Becker
6556e59865 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Fix failing soap tests on Windows
2024-09-27 19:58:30 +02:00
Christoph M. Becker
9f63657765 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Fix failing soap tests on Windows
2024-09-27 19:57:47 +02:00
Christoph M. Becker
5f3e6e346c Fix failing soap tests on Windows
These failures are caused by the fix for GHSA-p99j-rfp4-xqvq.  Since
the two bug*.phpt tests don't need the "wsdl" query string, and don't
even need php-cgi, we just remove the `--GET--` section.  The two
server*.phpt tests are harder to fix, since during evaluation of the
`--SKIPIF--` section, the soap extension can be loaded, but it may not
during evaluation of the `--FILE--` section.  So for now, we skip these
tests on Windows altogether.

Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Closes GH-16084.
2024-09-27 19:56:19 +02:00
Ilija Tovilo
87e79153c6 [skip ci] Improve test description 2024-09-27 17:39:51 +02:00
Ilija Tovilo
a58df54bc4 Merge branch 'PHP-8.4'
* PHP-8.4:
  Fix printing backtrace of fake generator frame
2024-09-27 17:37:14 +02:00
Ilija Tovilo
bc07a8a28a Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix printing backtrace of fake generator frame
2024-09-27 17:37:07 +02:00
Ilija Tovilo
8c556b211d Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Fix printing backtrace of fake generator frame
2024-09-27 17:35:55 +02:00
Christoph M. Becker
825509ee9e Drop superfluous LONG_MAX/LONG_MIN fallback definitions (GH-15667)
Both macros are supposed to be defined in limits.h (C99) and as such it
is superfluous to provide fallback definitions.  Even worse, because
these fallback definitions didn't cater to LP64, ILP64 and SILP64 data
models (and maybe some rather uncommon ones), but just assumed ILP32,
they are confusing.
2024-09-27 17:34:54 +02:00
Ilija Tovilo
706bcdbc1a Fix printing backtrace of fake generator frame
Fixes GH-15851
Closes GH-15952
2024-09-27 17:34:51 +02:00
Ilija Tovilo
2bc3df8196 Merge branch 'PHP-8.4'
* PHP-8.4:
  Reduce regex backtracking in phpinfo.phpt
2024-09-27 17:11:05 +02:00
Ilija Tovilo
28d88c72bc Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Reduce regex backtracking in phpinfo.phpt
2024-09-27 17:10:58 +02:00
Ilija Tovilo
0226e5d01d Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Reduce regex backtracking in phpinfo.phpt
2024-09-27 17:10:47 +02:00
Arnaud Le Blanc
4252545064 Remove phpdbg binary during make clean (#16085) 2024-09-27 16:24:17 +02:00
Ilija Tovilo
c4c45da4b9 Reduce regex backtracking in phpinfo.phpt
On NixOS, the output of phpinfo() can get very large, causing us to run into the
backtracking limit. Lazy matching for .*/.+ can help reduce backtracking.
2024-09-27 15:02:21 +02:00
Ilija Tovilo
dd8af18d7a Merge branch 'PHP-8.4'
* PHP-8.4:
  [skip ci] Bump required C standard to C11
2024-09-27 12:37:48 +02:00
Ilija Tovilo
631bab42dd [skip ci] Bump required C standard to C11
Closes GH-16078
2024-09-27 12:37:20 +02:00
Máté Kocsis
b32a941b8e Make a few xmlreader property handlers static 2024-09-26 23:47:20 +02:00
Máté Kocsis
5070fbf161 Some tidying-up related to property existence checks 2024-09-26 22:36:22 +02:00
Gina Peter Banyard
1f14d58c72 ext/phar: Remove unnecessary memory duplication for phar_make_dirstream()
And also pass in the known string length
2024-09-26 21:36:03 +01:00
Gina Peter Banyard
b581e8e6d0 ext/phar: Use HASH_FOREACH macro in phar_make_dirstream()
Also simplify and refactor the inside of the loop
2024-09-26 21:36:03 +01:00
Gina Peter Banyard
c74f1bebc6 ext/phar: Prevent duplicate strlen() computation in phar_wrapper_open_dir() 2024-09-26 21:36:03 +01:00
Gina Peter Banyard
a600713cd6 ext/phar: Use HASH_FOREACH macro in phar_wrapper_open_dir()
Also simplify the inner if condition
2024-09-26 21:36:03 +01:00
Gina Peter Banyard
615960be9c ext/phar: Refer to zend_string* length directly
This makes it more obvious that the host_len is that of resource->host
2024-09-26 21:36:03 +01:00
Gina Peter Banyard
839952c65a ext/phar: Use HASH_FOREACH macro in phar_wrapper_rmdir()
Also simplify the inner if condition
2024-09-26 21:36:03 +01:00
Ilija Tovilo
d21bc7f1e6 Disallow enums in ArrayObject
Closes GH-15775
2024-09-26 22:21:09 +02:00
Ilija Tovilo
20e3692a8c Merge branch 'PHP-8.4'
* PHP-8.4:
  Fix failed assertion when promoting Serialize deprecation to exception
2024-09-26 22:03:38 +02:00
Ilija Tovilo
756435a50c Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix failed assertion when promoting Serialize deprecation to exception
2024-09-26 22:03:30 +02:00
Ilija Tovilo
5cff4a9b69 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Fix failed assertion when promoting Serialize deprecation to exception
2024-09-26 22:03:01 +02:00
Ilija Tovilo
15a0c3a9d4 Fix failed assertion when promoting Serialize deprecation to exception
Fixes GH-15907
Closes GH-15951
2024-09-26 22:01:59 +02:00
Ben Ramsey
91a07e7b75 Merge branch 'PHP-8.4' 2024-09-26 14:25:41 -05:00
Ben Ramsey
d854a54b5f Merge branch 'PHP-8.3' into PHP-8.4 2024-09-26 14:24:13 -05:00
Ben Ramsey
6d99ccc268 Merge branch 'PHP-8.2' into PHP-8.3 2024-09-26 14:13:00 -05:00
Ben Ramsey
c259c9f3f6 Merge branch 'PHP-8.1' into PHP-8.2 2024-09-26 13:13:46 -05:00