--TEST-- ldap_mod_replace() - ldap_mod_replace() operations that should fail --CREDITS-- Patrick Allaert # Belgian PHP Testfest 2009 --EXTENSIONS-- ldap --SKIPIF-- --FILE-- "my-domain"])); // Invalid DN var_dump(ldap_mod_replace($link, "weirdAttribute=val", ["dc" => "my-domain"])); ?> --CLEAN-- --EXPECTF-- Warning: ldap_mod_replace(): Modify: No such object in %s on line %d bool(false) Warning: ldap_mod_replace(): Modify: Invalid DN syntax in %s on line %d bool(false)