Fix bug 61717 ext\ldap\tests\ldap_sasl_bind_basic.phpt fails
authorAnatoliy Belsky <ab@php.net>
Mon, 16 Apr 2012 13:20:03 +0000 (15:20 +0200)
committerAnatoliy Belsky <ab@php.net>
Mon, 16 Apr 2012 13:20:03 +0000 (15:20 +0200)
ext/ldap/tests/ldap_sasl_bind_basic.phpt

index 6ed14a5b19b0fe9ed9f6e4aa55f4b785e1340c70..efa1f82c9b1f891477b9d14b68d387200ca57563 100644 (file)
@@ -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";