From d51c4cd64fd9276ee88517bbeb8bdb1a2b466751 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Wed, 26 Jul 2017 17:21:27 +0200 Subject: [PATCH] Fixed test for ldap_set_option server controls with empty array --- ext/ldap/tests/ldap_set_option_error.phpt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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=== -- 2.50.1