Skip to content

Commit d276ea5

Browse files
committed
Skip tests if ldap_set_rebind_proc() is not available
This is already done by ldap_set_rebind_proc_error.phpt, but not by the other two affected tests. Closes phpGH-16708.
1 parent fde053b commit d276ea5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ext/ldap/tests/ldap_set_rebind_proc_basic.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ Patrick Allaert <patrickallaert@php.net>
66
--EXTENSIONS--
77
ldap
88
--SKIPIF--
9-
<?php require_once('skipifbindfailure.inc'); ?>
9+
<?php
10+
if (!function_exists('ldap_set_rebind_proc')) die("skip ldap_set_rebind_proc() not available");
11+
require_once('skipifbindfailure.inc');
12+
?>
1013
--FILE--
1114
<?php
1215
require "connect.inc";

ext/ldap/tests/ldap_unbind_variation.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ Patrick Allaert <patrickallaert@php.net>
66
--EXTENSIONS--
77
ldap
88
--SKIPIF--
9-
<?php require_once('skipifbindfailure.inc'); ?>
9+
<?php
10+
if (!function_exists('ldap_set_rebind_proc')) die("skip ldap_set_rebind_proc() not available");
11+
require_once('skipifbindfailure.inc');
12+
?>
1013
--FILE--
1114
<?php
1215
require "connect.inc";

0 commit comments

Comments
 (0)