php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14159 chdir() removes the last slash in parameter
Submitted: 2001-11-21 07:01 UTC Modified: 2001-11-21 14:46 UTC
From: nepto at pobox dot sk Assigned:
Status: Closed Package: Directory function related
PHP Version: 4.0.6 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: nepto at pobox dot sk
New email:
PHP Version: OS:

 

 [2001-11-21 07:01 UTC] nepto at pobox dot sk
I call:

$str = "images/"; chdir($str);

And chdir() removes the last slash from $str. I expected, as common sence says, that it will left $str unchanged.

Anyway, you can look at it in real conditions at
http://nepto.sk/test2.php

I hope this will help. Not me, but you.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-21 14:46 UTC] sniper@php.net
Can not reproduce with PHP 4.1.0RC3:

http://download.php.net/~zeev/php-4.1.0RC3.tar.gz
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Dec 01 18:01:23 2020 UTC