]> granicus.if.org Git - php/commitdiff
Fixed test for ldap_set_option server controls with empty array
authorCôme Chilliet <mcmic@php.net>
Wed, 26 Jul 2017 15:21:27 +0000 (17:21 +0200)
committerCôme Chilliet <mcmic@php.net>
Wed, 26 Jul 2017 15:21:27 +0000 (17:21 +0200)
ext/ldap/tests/ldap_set_option_error.phpt

index f319c7e6df6ecda6b486a4ea49fd6c4614253cd4..3ea49cbc7e2f32cd8a6948138eba102392fa989c 100644 (file)
@@ -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===