]> granicus.if.org Git - php/commitdiff
fix test portability
authorAnatol Belski <ab@php.net>
Fri, 17 Jun 2016 15:09:42 +0000 (17:09 +0200)
committerAnatol Belski <ab@php.net>
Fri, 17 Jun 2016 15:09:42 +0000 (17:09 +0200)
ext/pdo_firebird/tests/testdb.inc
ext/pgsql/tests/bug72195.phpt

index f6951a7b13282fab2440be5fa0d8ac3833b03a0b..cbf20230949f155d20ece7bef74469129c5902e9 100644 (file)
@@ -6,7 +6,7 @@ ini_set('ibase.default_user',$user);
 ini_set('ibase.default_password',$password);
 
 /* we need just the generated name, not the file itself */
-unlink($test_base = tempnam('/tmp',"php_ibase_test"));
+unlink($test_base = tempnam(sys_get_temp_dir(),"php_ibase_test"));
 
 function init_db()
 {
index 2f33e1ab1c48cd7d8465209b540921439f6cb980..34735d31f4f292461c8fc75a95a7234b21af10e9 100644 (file)
@@ -9,7 +9,7 @@ $var1 = $val;
 printf("%x\n", count($val));
 @pg_pconnect($var1, "2", "3", "4");
 $var1 = "";
-tempnam('/tmp', 'ABCDEFGHI');
+tempnam(sys_get_temp_dir(), 'ABCDEFGHI');
 printf("%x\n", count($val));
 ?>
 --EXPECT--