php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch 61717.diff for LDAP related Bug #61717

Patch version 2012-04-13 13:45 UTC

Return to Bug #61717 | Download this patch
Patch Revisions:

Developer: ab@php.net

diff --git a/ext/ldap/tests/ldap_sasl_bind_basic.phpt b/ext/ldap/tests/ldap_sasl_bind_basic.phpt
index 6ed14a5..efa1f82 100644
--- a/ext/ldap/tests/ldap_sasl_bind_basic.phpt
+++ b/ext/ldap/tests/ldap_sasl_bind_basic.phpt
@@ -6,6 +6,13 @@ Patrick Allaert <patrickallaert@php.net>
 --SKIPIF--
 <?php require_once('skipif.inc'); ?>
 <?php if (!function_exists("ldap_sasl_bind")) die("skip LDAP extension not compiled with SASL support"); ?>
+<?php
+	require "connect.inc";
+	$link = fsockopen($host, $port);
+	if (!$link) {
+		die("skip no server listening");
+	}
+?>
 --FILE--
 <?php
 require "connect.inc";
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Dec 06 07:04:07 2022 UTC