|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-15 16:01 UTC] felipe@php.net
[2015-03-30 18:56 UTC] mike@php.net
-Status: Open
+Status: Not a bug
[2015-03-30 18:56 UTC] mike@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 07:00:02 2025 UTC |
Description: ------------ cant change current working directory into phar package file Test script: --------------- <?php $p = new Phar('test.tar.phar'); $p['index.php'] = '<?php var_dump(__DIR__); echo "\\n"; var_dump(chdir(__DIR__)); ?>'; include 'phar://test.tar.phar/index.php'; Expected result: ---------------- string(50) "phar:///mnt/md1/www/htdocs/test/phar/test.tar.phar" bool(true) Actual result: -------------- string(50) "phar:///mnt/md1/www/htdocs/test/phar/test.tar.phar" <br /> <b>Warning</b>: chdir() [<a href='function.chdir'>function.chdir</a>]: No such file or directory (errno 2) in <b>phar:///mnt/md1/www/htdocs/test/phar/test.tar.phar/indxed.php</b> on line <b>1</b><br /> bool(false)