mirror of
https://github.com/danog/process.git
synced 2024-11-30 04:39:04 +01:00
parent
355b1e561b
commit
2dcddfb761
@ -41,7 +41,7 @@ final class Runner implements ProcessRunner
|
|||||||
// We can't execute the exe from within the PHAR, so copy it out...
|
// We can't execute the exe from within the PHAR, so copy it out...
|
||||||
if (\strncmp($wrapperPath, "phar://", 7) === 0) {
|
if (\strncmp($wrapperPath, "phar://", 7) === 0) {
|
||||||
if (self::$pharWrapperPath === null) {
|
if (self::$pharWrapperPath === null) {
|
||||||
self::$pharWrapperPath = \tempnam(\sys_get_temp_dir(), "amphp-process-wrapper-");
|
self::$pharWrapperPath = \sys_get_temp_dir() . "amphp-process-wrapper-" . \hash('sha1', \file_get_contents(self::WRAPPER_EXE_PATH));
|
||||||
\copy(self::WRAPPER_EXE_PATH, self::$pharWrapperPath);
|
\copy(self::WRAPPER_EXE_PATH, self::$pharWrapperPath);
|
||||||
|
|
||||||
\register_shutdown_function(static function () {
|
\register_shutdown_function(static function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user