File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 25
25
/* Development setting: test experimental features and/or feature requests that never worked before? */
26
26
$ TEST_EXPERIMENTAL = 1 == getenv ("MYSQL_TEST_EXPERIMENTAL " );
27
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
28
if (!function_exists ('my_mysqli_connect ' )) {
49
29
50
30
/**
You can’t perform that action at this time.
0 commit comments