summaryrefslogtreecommitdiff
path: root/ext/ldap/tests/bug72021.phpt
blob: f5e46eb615ac7cd6e9353fffae0479cc1c8435c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #72021 (ldap_escape() with DN flag is not RFC compliant)
--CREDITS--
Chad Sikorra <Chad.Sikorra@gmail.com>
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$subject = " Joe,= \rSmith ";

var_dump(ldap_escape($subject, '', LDAP_ESCAPE_DN));
?>
--EXPECT--
string(24) "\20Joe\2c\3d \0dSmith\20"