Skip to content

Commit a6f1049

Browse files
author
Alexandre
committed
Merge pull request alwex#11 from egorovpavel/patch-1
Make it /tmp directory agnostic
2 parents 65f5c4a + b1d2f95 commit a6f1049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Browser/Casper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ public function run()
454454

455455
$this->_script .= $fragment;
456456

457-
$filename = '/tmp/php-casperjs-' . uniqid() . '.js';
457+
$filename = tempnam(null,'php-casperjs-');
458458
file_put_contents($filename, $this->_script);
459459

460460
// options parsing

0 commit comments

Comments
 (0)