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_connect_error.phpt ('ldap_connect() - Connection errors')

Script

1: <?php
2:
require "connect.inc";
3:
4:
// too many arguments
5:
var_dump(ldap_connect(nullnullnull));
6:
var_dump(ldap_connect("ldap://$host:$port/$base"));
7:
8:
$links = array();
9:
$links[0] = ldap_connect($host$port);
10:
$links[1] = ldap_connect($host$port);
11:
?>
12:
===DONE===
13:

Expected

Warning: ldap_connect() expects at most 2 parameters, 3 given in %s on line %d
bool(false)

Warning: ldap_connect(): Could not create session handle: %s in %s on line %d
bool(false)

Warning: ldap_connect(): Too many open links (1) in %s on line %d
===DONE===

Output

Fatal error: Uncaught ArgumentCountError: ldap_connect() expects at most 2 parameters, 3 given in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_connect_error.php:5
Stack trace:
#0 /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_connect_error.php(5): ldap_connect(NULL, NULL, NULL)
#1 {main}
  thrown in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_connect_error.php on line 5

Diff

001+ Fatal error: Uncaught ArgumentCountError: ldap_connect() expects at most 2 parameters, 3 given in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_connect_error.php:5
002+ Stack trace:
003+ #0 /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_connect_error.php(5): ldap_connect(NULL, NULL, NULL)
004+ #1 {main}
005+   thrown in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_connect_error.php on line 5
001- Warning: ldap_connect() expects at most 2 parameters, 3 given in %s on line %d
002- bool(false)
003- 
004- Warning: ldap_connect(): Could not create session handle: %s in %s on line %d
005- bool(false)
006- 
007- Warning: ldap_connect(): Too many open links (1) in %s on line %d
008- ===DONE===

 

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

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