#39060 [Ctl->Csd]: mkdir(), chdir() and friends broken in ZTS
ID: 39060
Updated by: tony2001@php.net
Reported By: bjori@php.net
-Status: Critical
+Status: Closed
Bug Type: *Directory/Filesystem functions
Operating System: FreeBSD
PHP Version: 5.2.0RC5
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-10-06 13:19:39] edink@php.net
Works on:
linux64-intel
linux32-ppc
linux32-intel
win32
Does not work on:
FreeBSD 5.4 6.0 6.1
Mac OS X
------------------------------------------------------------------------
[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
Thread (4 messages)