php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21808 autoglobals won't work with a custom error page
Submitted: 2003-01-21 16:01 UTC Modified: 2003-01-22 03:21 UTC
From: wdl at kabelfoon dot nl Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.0 OS: linux apache 2.0.43
Private report: No CVE-ID: None
 [2003-01-21 16:01 UTC] wdl at kabelfoon dot nl
Hiya

When i have an error page with php but requesting the error page with an argument it won't show up in the scrip as $_REQUEST['arg'] or something
The arg is however in the $_SERVER["REDIRECT_QUERY_STRING"] AND in the $_SERVER["REQUEST_URI"]

Gr,

Wico

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-21 18:57 UTC] pollita@php.net
Please provide the following pieces of information:

1) A link to a phpinfo(); page on your server.

2) The relevant source of the script which calls your error page. (i.e.: header("Location: myerrorpage.php?arg=my+error+message"); )

3) The source to your error page.
 [2003-01-21 23:36 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.


This is normla behaviour wit Apache. Please read this:

http://httpd.apache.org/docs/custom-error.html

Not a bug.

 [2003-01-22 03:17 UTC] wdl at kabelfoon dot nl
I have in httpd.conf

Alias /_autofiles/error.html "/home/apache/errors/404.html"
ErrorDocument 404 /errors/404.html

when i do http://test.lan/errors/404.html?test=abc
it will show up in de $_GET and in de $_REQUEST

when i do http://test.lan/nonexistentpage.html?test=abc
it won't show up in $_GET OR in $_REQUEST
However it will be in $_SERVER["REDIRECT_QUERY_STRING"] and $_SERVER["REQUEST_URI"]

Gr,

Wico
 [2003-01-22 03:19 UTC] wdl at kabelfoon dot nl
ofcourse is in httpd.conf

Alias /errors/404.html "/home/apache/errors/404.html"
ErrorDocument 404 /errors/404.html
 [2003-01-22 03:21 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Exactly as it should behave -> not a bug.
Precies zoals het zou moeten werken -> geen bug.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 09:01:27 2024 UTC