summaryrefslogtreecommitdiff
path: root/ext/ldap
Commit message (Collapse)AuthorAgeFilesLines
* Convert resources to objects in ext/ldapMáté Kocsis2021-03-2137-591/+691
| | | | Closes GH-6770
* Merge branch 'PHP-8.0'Máté Kocsis2021-03-164-4/+25
|\ | | | | | | | | * Fix crash in LDAP search functions during argument validation * Fix ldap_next_entry() parameter name
| * Fix ldap_next_entry() parameter nameMáté Kocsis2021-03-162-4/+7
| |
| * Fix crash in LDAP search functions during argument validationMáté Kocsis2021-03-162-0/+18
| |
* | Generate class entries from stubs for ldap, libxml, mbstring and mysqliMáté Kocsis2021-02-162-2/+2
| | | | | | | | Closes GH-6684
* | Deprecate passing null to non-nullable arg of internal functionNikita Popov2021-02-117-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This deprecates passing null to non-nullable scale arguments of internal functions, with the eventual goal of making the behavior consistent with userland functions, where null is never accepted for non-nullable arguments. This change is expected to cause quite a lot of fallout. In most cases, calling code should be adjusted to avoid passing null. In some cases, PHP should be adjusted to make some function arguments nullable. I have already fixed a number of functions before landing this, but feel free to file a bug if you encounter a function that doesn't accept null, but probably should. (The rule of thumb for this to be applicable is that the function must have special behavior for 0 or "", which is distinct from the natural behavior of the parameter.) RFC: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg Closes GH-6475.
* | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-192-4/+4
|\ \ | |/ | | | | | | * PHP-8.0: ldap_search() and friends can return array
| * ldap_search() and friends can return arrayChristoph M. Becker2021-01-192-4/+4
| | | | | | | | | | | | | | See the description of <https://www.php.net/ldap-search>, and also the implementation. Closes GH-6620.
* | Replace zend_bool uses with boolNikita Popov2021-01-151-4/+4
| | | | | | | | | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* | Make convert_to_*_ex simple aliases of convert_to_*Nikita Popov2021-01-141-4/+4
|/ | | | | | | | | | | | | Historically, the _ex variants separated the zval first, if a conversion was necessary. This distinction no longer makes sense since PHP 7. The only difference that was still left is that _ex checked whether the type is the same first, but the usage of these macros did not actually distinguish on whether such an inlined check is valuable or not in a given context. Also drop the unused convert_to_explicit_type macros.
* ldap_exop_whoami() does not return TRUEChristoph M. Becker2020-12-082-3/+3
| | | | Closes GH-6496.
* Change $controls parameter to default to null in ext/ldapCôme Chilliet2020-10-153-41/+41
| | | | | | | | | It appeared that not passing $controls and passing [] caused different behaviors, when not passing it the controls set through ldap_set_option would be used, when passing [] they would not. So, this parameter is now nullable and defaults to null to have a consistent behavior.
* Mark ldap_exop() param as UNKNOWNNikita Popov2020-10-142-3/+3
| | | | | This function actually has very different behavior depending on whether $response_data is passed or not.
* Remove deprecated functions from php-ldapCôme Chilliet2020-10-017-471/+3
| | | | | | Remove ldap_control_paged_result and ldap_control_paged_result_response which have been deprecated in PHP 7.4, in favor of new $controls parameters for ldap request functions.
* Improve parameter names in ext/ldapCôme Chilliet2020-09-292-30/+30
| | | | Merging PR 6153
* Harmonize ldap_rename_ext with ldap_rename parameter namesMCMic2020-09-291-1/+1
| | | | Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
* Rename $link parameters to $ldap in ldap functionsCôme Chilliet2020-09-295-156/+156
| | | | Also fixed ldap_set_option places where $newvalue was still used
* Improve parameter naming in ldap_renameMCMic2020-09-291-1/+1
| | | | Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
* Improve parameter naming in ldap_exop_passwdMCMic2020-09-291-1/+1
| | | | Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
* Improve parameter naming in ldap_connectMCMic2020-09-291-1/+1
| | | | Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
* Improve parameter naming in ldap_set_option ext/ldap/ldap.stub.phpMCMic2020-09-291-1/+1
| | | | Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
* Explicitely mark nullable stringsCôme Chilliet2020-09-292-19/+19
|
* Fix parameter mask in ldap_next_attributeMCMic2020-09-291-1/+1
| | | | Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
* Fix parameter names in ext/ldapCôme Chilliet2020-09-293-146/+146
| | | | Renamed all parameters to be consistent and concise
* Fix "null" case in ldap.stub.phpCôme Chilliet2020-09-292-19/+19
|
* Remove dummy_ber parameter from ldap_first_attribute and ldap_next_attributeCôme Chilliet2020-09-293-12/+6
| | | | It has been unused and deprecated since PHP 5.2.4
* Set all parameters to ldap_sasl_bind as NULL by defaultCôme Chilliet2020-09-293-10/+10
| | | | | For mech, realm, authcid, authzid and props NULL means do not change current server setting.
* Default bind dn and password to NULL in ldap_bind_extCôme Chilliet2020-09-293-5/+5
|
* Default bind dn and password to NULL in ldap_bindCôme Chilliet2020-09-293-5/+5
|
* Make URI parameter in ldap_connect default to NULLCôme Chilliet2020-09-293-7/+7
|
* Consolidate the usage of "either" and "one of" in error messagesMáté Kocsis2020-09-201-1/+1
| | | | Closes GH-6173
* Run tidyNikita Popov2020-09-186-29/+29
| | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* Generate arginfosMáté Kocsis2020-09-161-6/+6
|
* Display string default values in stubs more uniformlyMáté Kocsis2020-09-161-3/+3
| | | | Settling on using quoted string
* Consolidate new union type ZPP macro namesMáté Kocsis2020-09-111-2/+2
| | | | | | | They will now follow the canonical order of types. Older macros are left intact due to maintaining BC. Closes GH-6112
* Promote warnings to exceptions in ext/ldapMáté Kocsis2020-09-044-106/+109
| | | | Closes GH-6065
* Use ZPP instead of custom type checksMáté Kocsis2020-09-043-43/+41
| | | | We can add these types as a native type declaration to stubs as a side-effect. Closes GH-6068
* Use ZPP callable check for ldap_set_rebind_proc()George Peter Banyard2020-08-132-12/+8
|
* Add another round of missing parameter types to stubsMáté Kocsis2020-08-072-1/+6
| | | | Closes GH-5950
* Fix stub hash of ext/ldapMáté Kocsis2020-08-031-1/+1
|
* Add a bunch of missing argument types to stubsMáté Kocsis2020-08-032-10/+23
|
* Convert the $ttl parameter of ldap_exop_refresh() to intMáté Kocsis2020-08-032-4/+5
|
* Merge branch 'PHP-7.4'Côme Chilliet2020-07-281-102/+95
|\ | | | | | | | | | | | | * PHP-7.4: Updated NEWS fix memory leaks in ext/ldap/ldap.c fix memory leaks in ext/ldap/ldap.c
| * fix memory leaks in ext/ldap/ldap.cPaweł Tomulik2020-07-281-103/+97
| |
* | Review the usage of apostrophes in error messagesMáté Kocsis2020-07-102-2/+2
| | | | | | | | Closes GH-5590
* | Merge branch 'PHP-7.4'Nikita Popov2020-07-104-7/+31
|\ \ | |/ | | | | | | | | * PHP-7.4: enable ext/ldap/tests on azure fix some ext/ldap/tests
| * enable ext/ldap/tests on azurePaweł Tomulik2020-07-101-0/+1
| |
| * fix some ext/ldap/testsPaweł Tomulik2020-07-103-7/+30
| |
* | Merge branch 'PHP-7.4'Nikita Popov2020-07-101-8/+36
|\ \ | |/ | | | | | | * PHP-7.4: Fix some memory bugs in ldap.c
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-07-101-8/+36
| |\ | | | | | | | | | | | | * PHP-7.3: Fix some memory bugs in ldap.c