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_parse_reference_error.phpt ('ldap_parse_reference() - ldap_parse_reference() operations that should fail')

Script

1: <?php
2:
require "connect.inc";
3:
$link ldap_connect($host$port);
4:
$refs null;
5:
var_dump(
6:     
ldap_parse_reference($link$link),
7:     
ldap_parse_reference($link$link$refs),
8:     
ldap_parse_reference($link$refs$refs"Additional data"),
9:     
$refs
10:
);
11:
?>
12:
===DONE===
13:

Expected

Warning: ldap_parse_reference() expects exactly 3 parameters, 2 given in %s on line %d

Warning: ldap_parse_reference(): supplied resource is not a valid ldap result entry resource in %s on line %d

Warning: ldap_parse_reference() expects exactly 3 parameters, 4 given in %s on line %d
NULL
bool(false)
NULL
NULL
===DONE===

Output

Fatal error: Uncaught ArgumentCountError: ldap_parse_reference() expects exactly 3 parameters, 2 given in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_parse_reference_error.php:6
Stack trace:
#0 /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_parse_reference_error.php(6): ldap_parse_reference(Resource id #5, Resource id #5)
#1 {main}
  thrown in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_parse_reference_error.php on line 6

Diff

001+ Fatal error: Uncaught ArgumentCountError: ldap_parse_reference() expects exactly 3 parameters, 2 given in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_parse_reference_error.php:6
002+ Stack trace:
003+ #0 /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_parse_reference_error.php(6): ldap_parse_reference(Resource id #5, Resource id #5)
004+ #1 {main}
005+   thrown in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_parse_reference_error.php on line 6
001- Warning: ldap_parse_reference() expects exactly 3 parameters, 2 given in %s on line %d
002- 
003- Warning: ldap_parse_reference(): supplied resource is not a valid ldap result entry resource in %s on line %d
004- 
005- Warning: ldap_parse_reference() expects exactly 3 parameters, 4 given in %s on line %d
006- NULL
007- bool(false)
008- NULL
009- NULL
010- ===DONE===

 

Generated at Mon, 06 May 2019 17:58:35 +0000 (942 days ago)

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