Download src/php/php-src/ext/ldap/tests/bug73933.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 688 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ldap/tests/bug73933.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ldap/tests/bug73933.phpt
-
curl -L -o bug73933.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ldap/tests/bug73933.phpt
688 Bytes
| --TEST-- | |
| Bug #73933 (error/segfault with ldap_mod_replace and opcache) | |
| --EXTENSIONS-- | |
| ldap | |
| --FILE-- | |
| /* We are assuming 3333 is not connectable */ | |
| $ldap = ldap_connect('ldap://127.0.0.1:3333'); | |
| ldap_mod_replace($ldap, '', array( | |
| 'lockoutTime' => array(0), | |
| )); | |
| ldap_modify_batch($ldap, '', array( [ | |
| "attrib" => "mail", | |
| "modtype" => LDAP_MODIFY_BATCH_ADD, | |
| "values" => [ | |
| "test@example.com", | |
| "test-2@example.com", ]])); | |
| ldap_close($ldap); | |
| --EXPECTF-- | |
| Warning: ldap_mod_replace(): Modify: Can't contact LDAP server in %sbug73933.php on line %d | |
| Warning: ldap_modify_batch(): Batch Modify: Can't contact LDAP server in %sbug73933.php on line %d | |