summaryrefslogtreecommitdiff
path: root/ext/ldap/tests
Commit message (Collapse)AuthorAgeFilesLines
* Convert resources to objects in ext/ldapMáté Kocsis2021-03-2134-62/+111
| | | | Closes GH-6770
* Merge branch 'PHP-8.0'Máté Kocsis2021-03-161-0/+14
|\ | | | | | | | | * Fix crash in LDAP search functions during argument validation * Fix ldap_next_entry() parameter name
| * Fix crash in LDAP search functions during argument validationMáté Kocsis2021-03-161-0/+14
| |
* | 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.
* Remove deprecated functions from php-ldapCôme Chilliet2020-10-014-233/+2
| | | | | | 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.
* Rename $link parameters to $ldap in ldap functionsCôme Chilliet2020-09-292-3/+3
| | | | Also fixed ldap_set_option places where $newvalue was still used
* Fix parameter names in ext/ldapCôme Chilliet2020-09-291-2/+2
| | | | Renamed all parameters to be consistent and concise
* Run tidyNikita Popov2020-09-186-29/+29
| | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* Promote warnings to exceptions in ext/ldapMáté Kocsis2020-09-043-34/+37
| | | | Closes GH-6065
* Use ZPP callable check for ldap_set_rebind_proc()George Peter Banyard2020-08-131-2/+2
|
* Review the usage of apostrophes in error messagesMáté Kocsis2020-07-101-1/+1
| | | | 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
| |
* | Add ldap_count_references()Paweł Tomulik2020-07-011-0/+36
| | | | | | | | Closes GH-5784
* | Promote warning to exception in ldap_set_rebind_proc()Paweł Tomulik2020-06-302-4/+7
| | | | | | | | | | | | | | From now on, ldap_set_rebind_proc() will only accept callable or null as argument 2. Closes GH-5763
* | Replace EXPECTF when possibleFabien Villepinte2020-06-291-1/+1
| | | | | | | | Closes GH-5779
* | Reindent phpt filesNikita Popov2020-02-0371-677/+677
| |
* | Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-171-1/+1
| | | | | | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* | Fix #78880: Final spelling fixesMáté Kocsis2020-01-161-1/+1
| |
* | Clean DONE tags from testsFabien Villepinte2019-11-0799-198/+0
| | | | | | | | | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* | Merge branch 'PHP-7.4'Christoph M. Becker2019-10-191-1/+1
|\ \ | |/ | | | | | | * PHP-7.4: Fix miscellaneous typos in docs
| * Fix miscellaneous typos in docsTyson Andre2019-10-191-1/+1
| |
* | Suppress fsockopen error in ldap_set_rebind_proc_error.phptNikita Popov2019-10-011-1/+1
| |
* | Merge branch 'PHP-7.4'Christoph M. Becker2019-10-011-1/+1
|\ \ | |/ | | | | | | | | | | * PHP-7.4: Add missing skip keyword in tests Update NEWS for 7.4.0RC4 Update NEWS for PHP 7.4.0RC3
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-10-011-1/+1
| |\ | | | | | | | | | | | | * PHP-7.3: Add missing skip keyword in tests
* | \ Merge branch 'PHP-7.4'Nikita Popov2019-09-301-1/+1
|\ \ \ | |/ /
| * | Fix borked SKIPIFsFabien Villepinte2019-09-301-1/+1
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2019-08-301-8/+8
|\ \ \ | |/ /
| * | Modernize some connectors in tests to remove env key duplicationFabien Villepinte2019-08-301-8/+8
| | |
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-08-251-0/+23
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Don't modify arrays passed by value
| * | Don't modify arrays passed by valueChristoph M. Becker2019-08-251-0/+21
| | |
* | | Remove ZPP tests from ext/ldapCôme Chilliet2019-06-1817-294/+0
| | |
* | | Merge branch 'PHP-7.4'Côme Chilliet2019-06-131-0/+55
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.4: Some more string conversion handling, fixing bug #77958 Avoid converting zval when not needed
| * | Merge branch 'PHP-7.3' into PHP-7.4Côme Chilliet2019-06-131-0/+55
| |\ \ | | |/ | | | | | | | | | | | | * PHP-7.3: Some more string conversion handling, fixing bug #77958 Avoid converting zval when not needed
| | * Some more string conversion handling, fixing bug #77958Côme Chilliet2019-06-131-0/+55
| | |
| | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-156-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | * Trim trailing whitespace in *.phptPeter Kokot2018-10-142-4/+4
| | |
| | * Trim trailing whitespace in source code filesPeter Kokot2018-10-131-1/+1
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2019-06-111-41/+0
|\ \ \ | |/ /
| * | Remove ext/ldap/tests/bug76248.phptNikita Popov2019-06-111-41/+0
| | | | | | | | | | | | | | | I wasn't able to make this test work reliably in CI, and the thing it's testing does not seem worth spending more time on it.
* | | Remove ldap zpp testsNikita Popov2019-06-1123-518/+9
| | | | | | | | | | | | | | | Missed these in the zpp test purge -- they've been failing on master for a while, but nobody compiles with ldap.
* | | Merge branch 'PHP-7.4'Peter Kokot2019-05-121-33/+51
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: [ci skip] Migrate tests READMEs to Markdown
| * | [ci skip] Migrate tests READMEs to MarkdownPeter Kokot2019-05-121-33/+51
| | |
* | | Merge branch 'PHP-7.4'Peter Kokot2019-03-158-15/+15
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
| * | Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-158-15/+15
| | |
* | | Removed ldap_sort and LDAP_DEPRECATED build flagCôme Chilliet2019-02-043-447/+0
|/ / | | | | | | | | | | ldap_sort was deprecated in PHP7, it is now removed. This allows removing the LDAP_DEPRECATED flag when building against openldap.
* | Mark ldap_control_paged_result and ldap_control_paged_result_response as ↵Côme Chilliet2019-02-044-0/+8
| | | | | | | | | | | | | | | | deprecated These functions have serious limitations and may confuse users. Same operations can be done using the new ldap control system in search operations.
* | Fix a test for ldap extensionMizunashi Mana2018-11-031-1/+2
| |
* | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-156-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2