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

 ID:                 29725
 Comment by:         vsraju dot vegesna at gmail dot com
 Reported by:        mex at localnet dot sk
 Summary:            variable $HTTP_SERVER_VARS['PHP_SELF'] does not
                     exist or it's clear
 Status:             Bogus
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Windows XP SP1a
 PHP Version:        5.0.1
 Block user comment: N
 Private report:     N

 New Comment:

why use $HTTP_SERVER_VARS['PHP_SELF'] variable in onchange event in
JavaScript's php.


Previous Comments:
------------------------------------------------------------------------
[2004-08-18 08:21:24] [email protected]

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.

It depends on the webserver whether it is set or not, not really much
something that PHP can do about.



To: scottmacvicar at ntlworld dot com, don't update the bugreports with
quickfixes if you don't know what you're talking about.

------------------------------------------------------------------------
[2004-08-18 01:28:00] mex at localnet dot sk

ok, but reference is the same for php 4 and php 5, without any notice
about "register_long_arrays = On".

------------------------------------------------------------------------
[2004-08-18 00:57:32] scottmacvicar at ntlworld dot com

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. 



Check your php.ini and make sure you register the old-style 

vars, this was a change made for PHP 5.

 

register_long_arrays = On

------------------------------------------------------------------------
[2004-08-18 00:53:39] mex at localnet dot sk

Description:
------------
variable $HTTP_SERVER_VARS['PHP_SELF'] does not exist or it's clear

Reproduce code:
---------------
on windows xp sp1a I get clear page:



<?php

echo $HTTP_SERVER_VARS['PHP_SELF'];

?>



on freebsd 5.2-cvs i get right reply





Expected result:
----------------
variable may be filled with relative path to actual script

Actual result:
--------------
variable is clear (or null?)


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



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

Reply via email to