Download src/php/php-src/ext/ldap/tests/gh17704.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ldap/tests/gh17704.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ldap/tests/gh17704.phpt
-
curl -L -o gh17704.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ldap/tests/gh17704.phpt
506 Bytes
| --TEST-- | |
| GH-17704 (ldap_search fails when $attributes contains a non-packed array with numerical keys) | |
| --EXTENSIONS-- | |
| ldap | |
| --SKIPIF-- | |
| require_once('skipifbindfailure.inc'); | |
| --FILE-- | |
| include "connect.inc"; | |
| $link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version); | |
| $attributes = ["uid", "cn"]; | |
| // force a non-packed array | |
| $attributes["x"] = "x"; | |
| unset($attributes["x"]); | |
| var_dump(ldap_search($link, $base, "(o=*)", $attributes)); | |
| --EXPECTF-- | |
| object(LDAP\Result)#%d (0) { | |
| } | |