Bug #14159: chdir() removes the last slash in parameter
| From: | nepto at pobox dot sk | Date: | Wed, 21 Nov 2001 12:01:20 +0000 |
| Subject: | Bug #14159: chdir() removes the last slash in parameter | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-71198@lists.php.net to get a copy of this message | ||
From: nepto@pobox.sk
Operating system: FreeBSD
PHP version: 4.0.6
PHP Bug Type: Directory function related
Bug description: chdir() removes the last slash in parameter
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.
--
Edit bug report at: http://bugs.php.net/?id=14159&edit=1