diff options
author | Anatoliy Belsky <ab@php.net> | 2012-04-16 15:25:20 +0200 |
---|---|---|
committer | Anatoliy Belsky <ab@php.net> | 2012-04-16 15:25:20 +0200 |
commit | 1c435ae498bb89c466e5c74e3be8c85cff17835a (patch) | |
tree | a0f9d58501da0ef3ed0c379c63494d76d229c28e | |
parent | 47e7755785e49836ca9b0e5376ec81fa209b9386 (diff) | |
download | php-git-1c435ae498bb89c466e5c74e3be8c85cff17835a.tar.gz |
Fix bug 61718 ext\ldap\tests\ldap_set_rebind_proc_error.phpt fails
-rw-r--r-- | ext/ldap/tests/ldap_set_rebind_proc_error.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/ldap/tests/ldap_set_rebind_proc_error.phpt b/ext/ldap/tests/ldap_set_rebind_proc_error.phpt index 3b4cd69cfc..966612f652 100644 --- a/ext/ldap/tests/ldap_set_rebind_proc_error.phpt +++ b/ext/ldap/tests/ldap_set_rebind_proc_error.phpt @@ -5,6 +5,16 @@ Patrick Allaert <patrickallaert@php.net> # Belgian PHP Testfest 2009 --SKIPIF-- <?php require_once('skipif.inc'); ?> +<?php + if (!function_exists("ldap_set_rebind_proc")) { + die("skip ldap_set_rebind_proc() does not exist"); + } + require "connect.inc"; + $link = fsockopen($host, $port); + if (!$link) { + die("skip no server listening"); + } +?> --FILE-- <?php require "connect.inc"; |