php-src/ext/ldap
Niels Dossche f90323c8d4
Fix GH-17280: ldap_search() fails when $attributes array has holes (#17284)
We relax the constraint that the array must be a list. What really
matters is that it only has numeric keys. As shown in the example code,
it's really easy to accidentally create a non-list array, so it makes
sense to relax the constraint.
There are 3 cases left where the array is checked to be a list,
in php_ldap_do_search, but I believe this makes sense to keep because
the indices of those arrays have a meaning because they should match
between different arrays. In that case it will prevent programmer
errors.
2024-12-27 17:58:50 +01:00
..
tests Fix GH-17280: ldap_search() fails when $attributes array has holes (#17284) 2024-12-27 17:58:50 +01:00
config.m4 Autotools: Replace backticks command substitutions with $(...) (#15639) 2024-08-30 00:40:49 +02:00
config.w32 Sync preprocessor macros help texts (#15218) 2024-08-04 12:52:16 +02:00
CREDITS
ldap.c Fix GH-17280: ldap_search() fails when $attributes array has holes (#17284) 2024-12-27 17:58:50 +01:00
ldap.stub.php Fix typo in LDAP stub (#14313) 2024-05-25 13:31:54 +02:00
ldap_arginfo.h Generated arginfo header files: combine preprocessor conditional blocks (#15736) 2024-09-04 13:04:22 +02:00
php_ldap.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00