php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39060 mkdir(), chdir() and friends broken in ZTS
Submitted: 2006-10-06 12:35 UTC Modified: 2006-10-06 14:35 UTC
From: bjori@php.net Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 5.2.0RC5 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bjori@php.net
New email:
PHP Version: OS:

 

 [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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-06 12:48 UTC] 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 13:19 UTC] 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 14:35 UTC] tony2001@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 09:01:29 2024 UTC