1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Commit Graph

138165 Commits

Author SHA1 Message Date
Gina Peter Banyard 18fca34ef3 ext/ldap: Improve type check for option value 2024-09-28 14:26:21 +01:00
Gina Peter Banyard b79866d01a ext/ldap: Refactor ldap_parse_result() to not rely on argnum 2024-09-28 14:26:21 +01:00
Gina Peter Banyard 980ffffbdc ext/ldap: Refactor ldap_parse_exop() to not rely on argnum 2024-09-28 14:26:21 +01:00
Gina Peter Banyard 2b92e26267 ext/ldap: Refactor ldap_exop_passwd() to not rely on argnum 2024-09-28 14:26:21 +01:00
Christoph M. Becker d812c96456 Fix pdoodbc_002.phpt to not try to load PDO_odbc (GH-16096)
In the `--EXTENSIONS--` section, names of extension are handled case-
sensitively.
2024-09-28 15:12:08 +02:00
David Carlier d00dd2b4b5 ext/random: haiku supports arc4random api too.
close GH-16095
2024-09-28 13:20:14 +01:00
Niels Dossche f1c4736f67 Merge branch 'PHP-8.4'
* PHP-8.4:
  Fix bogus fallthrough path in firebird_handle_get_attribute(), again
2024-09-28 13:20:40 +02:00
Niels Dossche b21d2ca93b Fix bogus fallthrough path in firebird_handle_get_attribute(), again
This reapplies b8e9c5ba6a after it was accidentally removed via
225034dbbc.
2024-09-28 13:19:33 +02:00
Tim Düsterhus 380f854852 random: Do not use ZVAL_DUP in Randomizer::shuffleArray() (#16072)
PHP Internals Book says:

> The ZVAL_DUP macro is similar to ZVAL_COPY, but will duplicate arrays, rather
> than just incrementing their refcount. If you are using this macro, you are
> almost certainly doing something very wrong.

Replace this by an explicit call to `zend_array_dup()`, as done in
`php_array_diff()`. Besides being more explicit in what is happening, this
likely also results in better assembly.
2024-09-28 13:16:40 +02:00
武田 憲太郎 7f5e96d030 ext/pdo_pgsql: Expanding COPY input from an array to an iterable
close GH-15893
2024-09-28 11:09:34 +01:00
Gina Peter Banyard 332e9a47ae ext/ldap: Use "p" ZPP specifier for all strings that must be null terminated (#16091) 2024-09-28 00:15:34 +01:00
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