php-src/ext/ldap/tests/ldap_escape_dn.phpt
2013-09-18 12:18:05 +01:00

14 lines
222 B
PHP

--TEST--
ldap_escape() test DN
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$subject = 'foo=bar(baz)*';
var_dump(ldap_escape($subject, null, LDAP_ESCAPE_DN));
?>
--EXPECT--
string(15) "foo\3dbar(baz)*"