summaryrefslogtreecommitdiff
path: root/ext/ldap/tests/bug73933.phpt
blob: 8e50a750e284ed8ef2113952344df6b80cec9e7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--TEST--
Bug #73933 (error/segfault with ldap_mod_replace and opcache)
--SKIPIF--
<?php
require_once('skipif.inc');
?>
--FILE--
<?php
/* We are assuming 3333 is not connectable */
$ldap = ldap_connect('127.0.0.1', 3333);

ldap_mod_replace($ldap, null, array(
    'lockoutTime' => array(0),
));

ldap_modify_batch($ldap, null, 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