0

Phing error "open_basedir restriction in effect" for "\phing\etc\VERSION.TXT"

If I create this empty build XML file in PHPStorm

<project name="test" default="build">
    <target name="build">
    </target>
</project>

And run the build then I get this output.

php.exe C:\work\zend\cgtag_1\build\phing-latest.phar -f C:/work/zend/cgtag_1/cgtag/test.xml build
Buildfile: C:\work\zend\cgtag_1\cgtag\test.xml
[PHP Error] file_exists(): open_basedir restriction in effect. File(\phing\etc\VERSION.TXT) is not within the allowed path(s): (C:/Users/Mathew/AppData/Local/Temp;C:/work/zend;C:/work/envelopes;c:/windows/temp;C:/Program Files (x86)/PHP;) [line 1136 of phar://C:/work/zend/cgtag_1/build/phing-latest.phar/classes/phing/Phing.php]
Warning: target 'build' has no tasks or dependencies
[PHP Error] file_exists(): open_basedir restriction in effect. File(\phing\etc\VERSION.TXT) is not within the allowed path(s): (C:/Users/Mathew/AppData/Local/Temp;C:/work/zend;C:/work/envelopes;c:/windows/temp;C:/Program Files (x86)/PHP;) [line 1136 of phar://C:/work/zend/cgtag_1/build/phing-latest.phar/classes/phing/Phing.php]
[PHP Error] file_exists(): open_basedir restriction in effect. File(\phing\etc\VERSION.TXT) is not within the allowed path(s): (C:/Users/Mathew/AppData/Local/Temp;C:/work/zend;C:/work/envelopes;c:/windows/temp;C:/Program Files (x86)/PHP;) [line 1136 of phar://C:/work/zend/cgtag_1/build/phing-latest.phar/classes/phing/Phing.php]


test > build:


BUILD FINISHED


Total time: 0.4689 seconds

Why am I getting the open_basedir restriction error? It looks like PHP does have have the phar file as part of it's include path.

1 comment

Please sign in to leave a comment.