ID:               26500
 Updated by:       [EMAIL PROTECTED]
 Reported By:      karmak-php at karmak dot org
 Status:           Open
 Bug Type:         Apache related
 Operating System: Linux
 PHP Version:      4.3.3
 New Comment:

oh..sorry for the trouble. (I hereby promise to read reports more
carefully :)

I'll delete these comments now. Sorry again.



Previous Comments:
------------------------------------------------------------------------

[2003-12-02 14:58:55] karmak-php at karmak dot org

This is not bogus.

The previous report had *two* problems listed. At the time I thought it
would be more convenient to list them together (as they seemed
related), but that was a mistake. One of the bugs in the previous
report is the same as the one described below. The other was a bug that
led to a segfault.

Unfortunately, the previous report was closed because I did not provide
a backtrace in time. Unfortunately I'm a bit swamped with work right
now and will not be able to do any more significant debugging until the
end of the month.

However, the problem described here does not require a backtrace, and
should not be closed.

In other words, they should have been filed as two separate bugs in the
first place, but I made the mistake of submitting them as a single bug.
I assume full responsibility for this error, but since my other report
is now closed, and the bug described below still exists (and does not
require any further debugging, e.g. a backtrace), please leave this
open. Perhaps someone will take a look at it this way.

If I could reopen the previous bug without submitting the backtrace, I
would do that instead. However, at this point I think it makes more
sense just to separate them into two separate bugs, as should have been
done in the first place.

------------------------------------------------------------------------

[2003-12-02 14:35:05] [EMAIL PROTECTED]

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #26341 (you were asked to provide feedback in that report, you
didn't give it in a week -> automatic closing. Please provide the
requested feedback and reopen the older report. DO NOT REPORT SAME
THING MANY TIMES!!)



------------------------------------------------------------------------

[2003-12-02 12:00:36] karmak-php at karmak dot org

Description:
------------
(Note: This was originally posted in combination with a segfault bug,
which got prematurely closed)

PHPs virtual() does not behave quite like the apache
#include virtual="": When virtual() is used to call another php script,
the query string in the virtual() call is ignored. For example, if you
call virtual("/file?x=y"), the variable "x" will not be set in the
included php script. An example of this is posted at:

  http://staging.karmak.org/2003/php-virtual-bug/a1

The source for the two files used in this example are at:

  http://staging.karmak.org/2003/php-virtual-bug/a1-php.txt
  http://staging.karmak.org/2003/php-virtual-bug/a2-php.txt

However, if you call the first script as "a1?x=y", the variable "x"
will be set to "y" in the second script. 

This is not the way the Apache virtual function behaves: With Apache,
the query string in the virtual call is passed to the script, as can be
seen in the following shtml file:

  http://staging.karmak.org/2003/php-virtual-bug/a3

The source to this file is at:

 http://staging.karmak.org/2003/php-virtual-bug/a3-shtml.txt

Furthermore, all query string variables are reset when the virtual call
is issued. This can be seen by calling the shtml file:

  http://staging.karmak.org/2003/php-virtual-bug/a4?x=y

With the corresponding source code at:

 http://staging.karmak.org/2003/php-virtual-bug/a4-shtml.txt

Note that the x=y declaration is not passed to the php script.


Reproduce code:
---------------
See Description for URLs

Expected result:
----------------
See Description

Actual result:
--------------
See Description


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26500&edit=1

Reply via email to