Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

ReckiCT\JitTest::testGetFunctionAstInternalFunction fails on Windows #17

Open
tomzx opened this issue Mar 21, 2015 · 0 comments
Open

ReckiCT\JitTest::testGetFunctionAstInternalFunction fails on Windows #17

tomzx opened this issue Mar 21, 2015 · 0 comments

Comments

@tomzx
Copy link

tomzx commented Mar 21, 2015

PHP 5.6.4

Part of interest in the callstack + arguments.
Jit::parseFile($fileName = false)
Jit::getFunctionAst($name = 'strlen')

$fileName = realpath($fileName); returns the current working directory.

Since $this->parsedFiles[$fileName] (with the working path as $fileName) does not exist, it will enter the condition and attempt to read a file. In this particular case, it'll attempt to read the directory, which does not make sense. Thus, I end up with

file_get_contents(E:\GIT\recki-ct\test): failed to open stream: Permission denied

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

No branches or pull requests

1 participant