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

Script

1: <?php
2:
require "connect.inc";
3:
var_dump(ldap_parse_result(nullnull));
4:
?>
5:
===DONE===
6:

Expected

Warning: ldap_parse_result() expects at least 3 parameters, 2 given in %s on line %d
NULL
===DONE===

Output

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

Diff

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

 

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

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