com php-src: Fix bug 61718 ext\ldap\tests\ldap_set_re bind_proc_error.phpt fails: ext/ldap/tests/ldap_s et_rebind_proc_error.phpt

From: Date: Mon, 16 Apr 2012 13:25:20 +0000
Subject: com php-src: Fix bug 61718 ext\ldap\tests\ldap_set_re bind_proc_error.phpt fails: ext/ldap/tests/ldap_s et_rebind_proc_error.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-68790@lists.php.net to get a copy of this message
Commit: 1c435ae498bb89c466e5c74e3be8c85cff17835a Author: Anatoliy Belsky <ab@php.net> Mon, 16 Apr 2012 15:25:20 +0200 Parents: 47e7755785e49836ca9b0e5376ec81fa209b9386 Branches: PHP-5.3 PHP-5.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1c435ae498bb89c466e5c74e3be8c85cff17835a Log: Fix bug 61718 ext\ldap\tests\ldap_set_rebind_proc_error.phpt fails Bugs: https://bugs.php.net/61718 Changed paths: M ext/ldap/tests/ldap_set_rebind_proc_error.phpt Diff: diff --git a/ext/ldap/tests/ldap_set_rebind_proc_error.phpt b/ext/ldap/tests/ldap_set_rebind_proc_error.phpt index 3b4cd69..966612f 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";

« previous php.cvs (#68790) next »