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_rename_error.phpt ('ldap_rename() - Testing ldap_rename() that should fail')

Script

1: <?php
2:
require "connect.inc";
3:
4:
$link ldap_connect($host$port);
5:
var_dump(ldap_rename($link));
6:
var_dump(ldap_rename($link"cn=userNotFound,$base""cn=userZ""$base"true));
7:
?>
8:
===DONE===
9:

Expected

Warning: ldap_rename() expects at least 5 parameters, 1 given in %s on line %d
NULL
bool(false)
===DONE===

Output

Fatal error: Uncaught ArgumentCountError: ldap_rename() expects at least 5 parameters, 1 given in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_rename_error.php:5
Stack trace:
#0 /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_rename_error.php(5): ldap_rename(Resource id #5)
#1 {main}
  thrown in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_rename_error.php on line 5

Diff

001+ Fatal error: Uncaught ArgumentCountError: ldap_rename() expects at least 5 parameters, 1 given in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_rename_error.php:5
002+ Stack trace:
003+ #0 /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_rename_error.php(5): ldap_rename(Resource id #5)
004+ #1 {main}
001- Warning: ldap_rename() expects at least 5 parameters, 1 given in %s on line %d
002- NULL
003- bool(false)
004- ===DONE===
005+   thrown in /var/php_gcov/PHP_HEAD/ext/ldap/tests/ldap_rename_error.php on line 5

 

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

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