mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
15 lines
321 B
PHP
15 lines
321 B
PHP
--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, null, LDAP_ESCAPE_DN));
|
|
?>
|
|
--EXPECT--
|
|
string(24) "\20Joe\2c\3d \0dSmith\20"
|