Skip to content

Commit 626ae9f

Browse files
committed
Verify deprecation of ldap_connect w/h 2 params
This adds a test to verify that calling ldap_connect with 2 parameters triggers a deprecation notice
1 parent 2fafff4 commit 626ae9f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
ldap_connect() - With two parameters is marked as deprecated
3+
--CREDITS--
4+
Andreas Heigl <heiglandreas@php.net>
5+
--FILE--
6+
<?php
7+
require "connect.inc";
8+
9+
ldap_connect('foobar', 123);
10+
?>
11+
--EXPECTF--
12+
Deprecated: Usage of ldap_connect with two arguments is deprecated. in %s on line %d

0 commit comments

Comments
 (0)