mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
8836404faf
Now you can set the base in the env var LDAP_TEST_BASE. The base has to exists. (before tests were attempting to create/delete the base itself)
22 lines
512 B
PHP
22 lines
512 B
PHP
--TEST--
|
|
ldap_rename() - Testing ldap_rename() that should fail
|
|
--CREDITS--
|
|
Patrick Allaert <patrickallaert@php.net>
|
|
# Belgian PHP Testfest 2009
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
require "connect.inc";
|
|
|
|
$link = ldap_connect($host, $port);
|
|
var_dump(ldap_rename($link));
|
|
var_dump(ldap_rename($link, "cn=userNotFound,$base", "cn=userZ", "$base", true));
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
Warning: ldap_rename() expects exactly 5 parameters, 1 given in %s on line %d
|
|
NULL
|
|
bool(false)
|
|
===DONE===
|