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

14 lines
260 B
PHP

--TEST--
ldap_escape() test filter and DN
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$subject = 'foo=bar(baz)*';
var_dump(ldap_escape($subject, null, LDAP_ESCAPE_DN | LDAP_ESCAPE_FILTER));
?>
--EXPECT--
string(21) "foo\3dbar\28baz\29\2a"