#39060 [Ctl]: mkdir(), chdir() and friends broken in ZTS

From: Date: Fri, 06 Oct 2006 13:19:39 +0000
Subject: #39060 [Ctl]: mkdir(), chdir() and friends broken in ZTS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103193@lists.php.net to get a copy of this message
ID: 39060 Updated by: edink@php.net Reported By: bjori@php.net Status: Critical Bug Type: *Directory/Filesystem functions Operating System: FreeBSD PHP Version: 5.2.0RC5 New Comment: Works on: linux64-intel linux32-ppc linux32-intel win32 Does not work on: FreeBSD 5.4 6.0 6.1 Mac OS X Previous Comments: ------------------------------------------------------------------------ [2006-10-06 12:48:22] bjori@php.net $ 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 ------------------------------------------------------------------------ [2006-10-06 12:35:29] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39060&edit=1

« previous php.bugs (#103193) next »