PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/ldap/tests/ldap_exop_refresh.phpt ('ldap_exop_refresh() - Test LDAP refresh extended operation')

Script

1: <?php
2:
require "connect.inc";
3:
4:
$link ldap_connect_and_bind($host$port$user$passwd$protocol_version);
5:
6:
insert_dummy_data($link$base);
7:
ldap_add($link"cn=tmp,$base", array(
8:     
"objectclass" => array("person""dynamicObject"),
9:     
"cn" => "tmp",
10:     
"sn" => "tmp"
11:
));
12:
var_dump(
13:     
ldap_exop_refresh($link"cn=tmp,$base"1234)
14: );
15:
?>
16:
===DONE===
17:

Expected

int(1234)
===DONE===

Output

Warning: ldap_add(): Add: Object class violation in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_exop_refresh.php on line 8

Warning: ldap_exop_refresh(): Refresh extended operation failed: Protocol error (2) in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_exop_refresh.php on line 13
bool(false)
===DONE===

Diff

001+ Warning: ldap_add(): Add: Object class violation in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_exop_refresh.php on line 8
002+ 
003+ Warning: ldap_exop_refresh(): Refresh extended operation failed: Protocol error (2) in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_exop_refresh.php on line 13
004+ bool(false)
001- int(1234)

 

Generated at Sat, 09 Sep 2017 03:10:54 +0000 (12 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.