summaryrefslogtreecommitdiff
path: root/ext/ldap/tests/ldap_escape_both.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ldap/tests/ldap_escape_both.phpt')
-rw-r--r--ext/ldap/tests/ldap_escape_both.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/ldap/tests/ldap_escape_both.phpt b/ext/ldap/tests/ldap_escape_both.phpt
new file mode 100644
index 0000000000..2169c0ad2e
--- /dev/null
+++ b/ext/ldap/tests/ldap_escape_both.phpt
@@ -0,0 +1,14 @@
+--TEST--
+ldap_escape() test filter and DN
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+
+$subject = 'foo=bar(baz)*';
+
+var_dump(ldap_escape($subject, null, LDAP_ESCAPE_DN | LDAP_ESCAPE_FILTER));
+
+?>
+--EXPECT--
+string(21) "foo\3dbar\28baz\29\2a" \ No newline at end of file