Skip to content

Commit d0a8cd9

Browse files
committed
Use system temporary directory
1 parent cefa264 commit d0a8cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ldap/tests/ldap_connect_ldap_conf.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (!preg_match("/vendor name => openldap/i", ob_get_clean()))
1313
?>
1414
--FILE--
1515
<?php
16-
$conf=tempnam("/tmp","ldap.conf");
16+
$conf=tempnam(sys_get_temp_dir(),"ldap.conf");
1717
file_put_contents($conf, "uri ldaps://example.com:3141/");
1818
putenv("LDAPCONF=$conf");
1919
$link = ldap_connect();

0 commit comments

Comments
 (0)