#19546 [NEW]: virtual(...) changes current directory

From: Date: Sun, 22 Sep 2002 03:46:49 +0000
Subject: #19546 [NEW]: virtual(...) changes current directory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20029@lists.php.net to get a copy of this message
From: zen@heavengames.com Operating system: FreeBSD 4.6 PHP version: 4.2.2 PHP Bug Type: Apache related Bug description: virtual(...) changes current directory Description: virtual() changes current working directory. Setup: Apache 1.3.26 + PHP 4.2.2 To replicate: chdir('/home/heavengames.com/php/'); echo getcwd(); // prints "/home/heavengames.com/php/" virtual('/includes/html_top.shtml'); echo getcwd(); // prints "/home/heavengames.com/includes/html_top.shtml" Expected Behavior: The second getcwd call should still report "/home/heavengames.com/php" as the current directory. -- Edit bug report at http://bugs.php.net/?id=19546&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19546&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19546&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19546&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19546&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19546&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19546&r=support Expected behavior: http://bugs.php.net/fix.php?id=19546&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19546&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19546&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19546&r=globals

« previous php.bugs (#20029) next »