PHP 4.0 Bug #3940 Updated: Virtual changes current directory - php4RC1!!
| From: | Bug Database | Date: | Sun, 30 Jul 2000 12:09:34 +0000 |
| Subject: | PHP 4.0 Bug #3940 Updated: Virtual changes current directory - php4RC1!! | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-26940@lists.php.net to get a copy of this message | ||
ID: 3940
Updated by: zak
Reported By: rwidmer@developersdesk.com
Status: Open
Bug Type: Misbehaving function
Assigned To:
Comments:
Email from user:
"I just checked it with PHP Version 4.0.2-dev from php4-200007300345
Virtual still messes up the current directory.
The extra headers problem mentioned in the test programs for this bug has been fixed.
http://ns2.developersdesk.com/virtual/test.php3
-------------------------------------------------------------------------------
hello from virtual.html in the subdirectory
Do you see headers after this virtual call? With php4rc1 I do, but not
with php3.0.12. Somehow I don't think they belong there. They only
appear if virtual is the first html sent to the browser. Even a single
space sent before the virtual call will prevent it.
OK, lets try calling the include file, you should get the one in the
subdirectory.
hello from virtual.inc in the subdirectory
Now lets call the virtual.html in the root directory and see what
happens
Hello from the virtual.html file in document root
Finally lets see what happens when we call the include file again.
hello from the virtual.inc file in document root
Oops, it looks like virtual() changed the current directory and did not
change it back...
PHP Version 4.0.2-dev
System
Linux lessa.developersdesk.com 2.0.36 #1
Tue Oct 13
22:17:11 EDT 1998 i586 unknown
Build Date
Jul 30 2000
Configure Command
'./configure' '--with-apache=../apache'
'--with-mysql=../mysql'
'--enable-track-vars'
'--with-config-file-path=/web/conf'
'--with-gd'
Server API
Apache"
Full Bug description available at: http://bugs.php.net/?id=3940