From: Côme Chilliet Date: Wed, 26 Jul 2017 15:21:27 +0000 (+0200) Subject: Fixed test for ldap_set_option server controls with empty array X-Git-Tag: php-7.3.0alpha1~1780 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d51c4cd64fd9276ee88517bbeb8bdb1a2b466751;p=php Fixed test for ldap_set_option server controls with empty array --- diff --git a/ext/ldap/tests/ldap_set_option_error.phpt b/ext/ldap/tests/ldap_set_option_error.phpt index f319c7e6df..3ea49cbc7e 100644 --- a/ext/ldap/tests/ldap_set_option_error.phpt +++ b/ext/ldap/tests/ldap_set_option_error.phpt @@ -20,8 +20,7 @@ $controls = array( array("oid" => "1.2.752.58.1.10", "value" => "magic"), "weird" ), - array( - ), + "notanarray" ); // Too few parameters @@ -60,7 +59,7 @@ bool(false) Warning: ldap_set_option(): The array value must contain only arrays, where each array is a control in %s on line %d bool(false) -Warning: ldap_set_option(): Expected non-empty array value for this option in %s on line %d +Warning: ldap_set_option(): Expected array value for this option in %s on line %d bool(false) bool(false) ===DONE===