Bug #14159 Updated: chdir() removes the last slash in parameter

From: Date: Wed, 21 Nov 2001 19:46:58 +0000
Subject: Bug #14159 Updated: chdir() removes the last slash in parameter
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-71299@lists.php.net to get a copy of this message
ID: 14159 Updated by: sniper Reported By: nepto@pobox.sk Old Status: Open Status: Closed Bug Type: Directory function related Operating System: FreeBSD PHP Version: 4.0.6 New Comment: Can not reproduce with PHP 4.1.0RC3: http://download.php.net/~zeev/php-4.1.0RC3.tar.gz Previous Comments: ------------------------------------------------------------------------ [2001-11-21 07:01:20] nepto@pobox.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. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14159&edit=1

« previous php.dev (#71299) next »