php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61718
Patch 61718.diff revision 2012-04-13 13:46 UTC by ab@php.net
revision 2012-04-13 13:04 UTC by ab@php.net

Patch 61718.diff for LDAP related Bug #61718

Patch version 2012-04-13 13:46 UTC

Return to Bug #61718 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: ab@php.net

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";
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC