xref: /php-src/ext/ldap/tests/bug72021.phpt (revision 849a34e4)
1--TEST--
2Bug #72021 (ldap_escape() with DN flag is not RFC compliant)
3--CREDITS--
4Chad Sikorra <Chad.Sikorra@gmail.com>
5--EXTENSIONS--
6ldap
7--FILE--
8<?php
9$subject = " Joe,= \rSmith ";
10
11var_dump(ldap_escape($subject, '', LDAP_ESCAPE_DN));
12?>
13--EXPECT--
14string(24) "\20Joe\2c\3d \0dSmith\20"
15