]> granicus.if.org Git - php/commitdiff
Fix bug 61718 ext\ldap\tests\ldap_set_rebind_proc_error.phpt fails
authorAnatoliy Belsky <ab@php.net>
Mon, 16 Apr 2012 13:25:20 +0000 (15:25 +0200)
committerAnatoliy Belsky <ab@php.net>
Mon, 16 Apr 2012 13:25:20 +0000 (15:25 +0200)
ext/ldap/tests/ldap_set_rebind_proc_error.phpt

index 3b4cd69cfc3be58af4451dc4695363272350bf50..966612f6528119f5e6aa7eeec4906b8c58602cb5 100644 (file)
@@ -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";