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