dis-bench / src /php /php-src /ext /ldap /tests /bug73933.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
688 Bytes
--TEST--
Bug #73933 (error/segfault with ldap_mod_replace and opcache)
--EXTENSIONS--
ldap
--FILE--
<?php
/* 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