com php-src: fix test portability: ext/pdo_firebird/tests/tes tdb.inc ext/pgsql/tests/bug72195.phpt

From: Date: Fri, 17 Jun 2016 15:09:42 +0000
Subject: com php-src: fix test portability: ext/pdo_firebird/tests/tes tdb.inc ext/pgsql/tests/bug72195.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92417@lists.php.net to get a copy of this message
Commit: 4a142af31612100ea7ff9affec0dfb795a976ce3 Author: Anatol Belski <ab@php.net> Fri, 17 Jun 2016 17:09:42 +0200 Parents: d6b649f6daff236c1652ee4364fc698adc671fcc Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4a142af31612100ea7ff9affec0dfb795a976ce3 Log: fix test portability Changed paths: M ext/pdo_firebird/tests/testdb.inc M ext/pgsql/tests/bug72195.phpt Diff: diff --git a/ext/pdo_firebird/tests/testdb.inc b/ext/pdo_firebird/tests/testdb.inc index f6951a7..cbf2023 100644 --- a/ext/pdo_firebird/tests/testdb.inc +++ b/ext/pdo_firebird/tests/testdb.inc @@ -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() { diff --git a/ext/pgsql/tests/bug72195.phpt b/ext/pgsql/tests/bug72195.phpt index 2f33e1a..34735d3 100644 --- a/ext/pgsql/tests/bug72195.phpt +++ b/ext/pgsql/tests/bug72195.phpt @@ -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--

« previous php.cvs (#92417) next »