mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix tempnam() path in test when running from out-of-source (#14326)
This fixes test when running the test from unusual paths such as in out-of-source builds: ```sh mkdir php-build cd php-build ../buildconf ../configure make ./sapi/cli/php ../run-tests.php ../ext/standard/tests/file/002.phpt ```
This commit is contained in:
@@ -22,7 +22,7 @@ blah blah blah blah blah blah blah
|
||||
blah blah blah blah blah blah blah
|
||||
EOD;
|
||||
|
||||
$name = tempnam("./ext/standard/tests/file/", "php");
|
||||
$name = tempnam(__DIR__, "php");
|
||||
$fp = fopen($name, "w");
|
||||
fwrite($fp, $data);
|
||||
fclose($fp);
|
||||
|
||||
Reference in New Issue
Block a user