|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-10-06 12:35 UTC] bjori@php.net
Description:
------------
mkdir(), chdir() and pals always work form the orginal
cwd.
Reproduce code:
---------------
<?php
chdir("/"); chdir("mnt");
?>
Actual result:
--------------
PHP Warning: chdir(): No such file or directory (errno 2)
in Command line code on line 1
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 06:00:01 2025 UTC |
$ cvs -d:pserver:bjori@cvs.php.net/repository co -r PHP_5_2 -d php52 php5 $ cd php52/ $ ./buildconf --force $ ./configure --without-pear --disable-all --disable-cgi --enable-debug --enable-maintainer-zts --with-zend-vm=GOTO $ make $ sapi/cli/php -r 'chdir("/"); chdir("mnt"); var_dump(getcwd());' Warning: chdir(): No such file or directory (errno 2) in Command line code on line 1 string(1) "/" $ uname -a FreeBSD lindsay.jeshus.com 6.1-STABLE FreeBSD 6.1-STABLE #0: Fri Aug 18 18:58:02 CEST 2006 root@lindsay.jeshus.com:/usr/obj/usr/src/sys/LINDSAY i386