summaryrefslogtreecommitdiff
path: root/ext/ldap
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-05-26 14:10:57 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-07-10 21:05:28 +0200
commitd30cd7d7e7ddd0d06c18c47f43c7d2ee00de24a1 (patch)
tree33fdeac65ef66eb3db6066af396763fae391bef9 /ext/ldap
parent2ad75ba78440eeffbde35a12c666d5f55aaf631a (diff)
downloadphp-git-d30cd7d7e7ddd0d06c18c47f43c7d2ee00de24a1.tar.gz
Review the usage of apostrophes in error messages
Closes GH-5590
Diffstat (limited to 'ext/ldap')
-rw-r--r--ext/ldap/ldap.c2
-rw-r--r--ext/ldap/tests/ldap_set_option_error.phpt2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c
index 7b74fda9b2..a7e6abacfb 100644
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@ -284,7 +284,7 @@ static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* arra
size_t num_tmpstrings1 = 0, num_tmpstrings2 = 0;
if ((val = zend_hash_str_find(Z_ARRVAL_P(array), "oid", sizeof("oid") - 1)) == NULL) {
- php_error_docref(NULL, E_WARNING, "Control must have an oid key");
+ php_error_docref(NULL, E_WARNING, "Control must have an \"oid\" key");
return -1;
}
diff --git a/ext/ldap/tests/ldap_set_option_error.phpt b/ext/ldap/tests/ldap_set_option_error.phpt
index 079c63577d..5ef4c0b86b 100644
--- a/ext/ldap/tests/ldap_set_option_error.phpt
+++ b/ext/ldap/tests/ldap_set_option_error.phpt
@@ -33,7 +33,7 @@ var_dump(ldap_set_option($link, 999999, 999999));
--EXPECTF--
bool(false)
-Warning: ldap_set_option(): Control must have an oid key in %s on line %d
+Warning: ldap_set_option(): Control must have an "oid" key in %s on line %d
bool(false)
Warning: ldap_set_option(): The array value must contain only arrays, where each array is a control in %s on line %d