We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 092726f commit 17a80ebCopy full SHA for 17a80eb
ext/mysqli/tests/connect.inc
@@ -25,26 +25,6 @@
25
/* Development setting: test experimental features and/or feature requests that never worked before? */
26
$TEST_EXPERIMENTAL = 1 == getenv("MYSQL_TEST_EXPERIMENTAL");
27
28
- if (!function_exists('sys_get_temp_dir')) {
29
- function sys_get_temp_dir() {
30
-
31
- if (!empty($_ENV['TMP']))
32
- return realpath( $_ENV['TMP'] );
33
- if (!empty($_ENV['TMPDIR']))
34
- return realpath( $_ENV['TMPDIR'] );
35
- if (!empty($_ENV['TEMP']))
36
- return realpath( $_ENV['TEMP'] );
37
38
- $temp_file = tempnam(md5(uniqid(rand(), TRUE)), '');
39
- if ($temp_file) {
40
- $temp_dir = realpath(dirname($temp_file));
41
- unlink($temp_file);
42
- return $temp_dir;
43
- }
44
- return FALSE;
45
46
47
48
if (!function_exists('my_mysqli_connect')) {
49
50
/**
0 commit comments