bug72021.phpt 291 B

1234567891011121314
  1. --TEST--
  2. Bug #72021 (ldap_escape() with DN flag is not RFC compliant)
  3. --CREDITS--
  4. Chad Sikorra <Chad.Sikorra@gmail.com>
  5. --EXTENSIONS--
  6. ldap
  7. --FILE--
  8. <?php
  9. $subject = " Joe,= \rSmith ";
  10. var_dump(ldap_escape($subject, '', LDAP_ESCAPE_DN));
  11. ?>
  12. --EXPECT--
  13. string(24) "\20Joe\2c\3d \0dSmith\20"