Skip to content

Job: cannot run files from PHAR #276

Description

@milo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions