This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Oct 7, 2013 8:26 PM by Maxim Kolmakov  
Mathew Foscarini Newbie 49 posts since
Sep 27, 2013
Currently Being Moderated

Oct 5, 2013 4:47 PM

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.

Maxim Kolmakov JetBrains 33 posts since
Oct 15, 2012

What is the value of option open_basedir in php.ini?

More Like This

  • Retrieving data ...