Download src/php/php-src/ext/ldap/tests/gh16389.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ldap/tests/gh16389.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ldap/tests/gh16389.phpt
-
curl -L -o gh16389.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ldap/tests/gh16389.phpt
565 Bytes
| --TEST-- | |
| GH-16389 (Assertion failure in ext/ldap/ldap.c:2718) | |
| --EXTENSIONS-- | |
| ldap | |
| --FILE-- | |
| $attrib = "attrib"; | |
| $modtype = LDAP_MODIFY_BATCH_ADD; | |
| $values = ["value1"]; | |
| $ldap = ldap_connect('ldap://127.0.0.1:3333'); | |
| $modification_attrib_reference_string = [ | |
| [ | |
| "attrib" => &$attrib, | |
| "modtype" => &$modtype, | |
| "values" => &$values, | |
| ], | |
| ]; | |
| var_dump(ldap_modify_batch($ldap, "", $modification_attrib_reference_string)); | |
| --EXPECTF-- | |
| Warning: ldap_modify_batch(): Batch Modify: Can't contact LDAP server in %s on line %d | |
| bool(false) | |