Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job: cannot run files from PHAR #276

Closed
milo opened this issue Nov 26, 2015 · 3 comments
Closed

Job: cannot run files from PHAR #276

milo opened this issue Nov 26, 2015 · 3 comments

Comments

@milo
Copy link
Member

milo commented Nov 26, 2015

tester.phar does not work.

cd tools/create-phar
php -d phar.readonly=Off create-phar.php
php tester.phar ../../tests --info --debug

# E_WARNING: proc_open(): CreateProcess failed, error code - 267

It's because the Job runs phar://D:/Web/dev/nette/tester/tools/create-phar/tester.phar/Runner/info.php and its CWD is inside PHAR. When changed here into:

strncasecmp($this->file, 'phar://', 7) === 0 ? sys_get_temp_dir() : dirname($this->file)

it will work for test files in ordinary file system, but not for the info.php inside tester.phar self.

I'm thinking about extraction into system temp dir in this case.

@jkuchar
Copy link
Contributor

jkuchar commented Sep 10, 2016

What about providing info.php onto stdin?

@milo milo closed this as completed in cd38385 Jul 17, 2020
@milo
Copy link
Member Author

milo commented Jul 17, 2020

Tester as a PHAR does not work a long time.

@dg
Copy link
Member

dg commented Jul 18, 2020

Lets remove it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants