Skip to content

Commit

Permalink
fix test portability
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Jun 17, 2016
1 parent d6b649f commit 4a142af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/pdo_firebird/tests/testdb.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion ext/pgsql/tests/bug72195.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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--
Expand Down

0 comments on commit 4a142af

Please sign in to comment.