php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17475 results of Virtual() is misplaced
Submitted: 2002-05-28 05:17 UTC Modified: 2002-05-30 07:08 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: rich_mcanir at yahoo dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.1 OS: WinXP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
4 + 17 = ?
Subscribe to this entry?

 
 [2002-05-28 05:17 UTC] rich_mcanir at yahoo dot com
This problem can be explained really simple with a script. And I am sure it's a problem with Apache2 because this problem doesn't arise in Apache. (Note: the content of ip.cgi and ip.html is simply IP.CGI and IP.HTML respectively.)

The Code:
<P>1. <?php virtual("ip.cgi")?>
<P>2. <?php virtual("ip.html")?>

Output (Apache2):
IP.NETIP.HTML
<P>1. <P>2. 

Output (Apache):
<P>1. IP.NET<P>2. IP.HTML

In conclusion, the content prased by virtual() is misplaced.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-28 11:28 UTC] sander@php.net
You don't happen to have different ob_* settings for both servers? IIRC, virtual() doesn't wrap through the output buffering system.
 [2002-05-28 12:15 UTC] rich_mcanir at yahoo dot com
Both servers use the same setting since they are both on the same computer. All settings are default. Of course, one uses php4apache2.dll and the other uses php4apache.dll. I don't understand any strange behaviour.
 [2002-05-30 02:02 UTC] rich_mcanir at yahoo dot com
The problem has been solved by replacing the php.ini with a new fresh one.
 [2002-05-30 07:08 UTC] sniper@php.net
user error -> bogus.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 20:01:29 2024 UTC