Bug #13606 Updated: $PHP_SELF not always point to script name

From: Date: Wed, 06 Feb 2002 17:23:23 +0000
Subject: Bug #13606 Updated: $PHP_SELF not always point to script name
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-79376@lists.php.net to get a copy of this message
 ID:               13606
 Updated by:       alindeman@php.net
 Reported By:      flaviovs@magnux.com
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Linux+Apache 1.3.20+PHP (DSO)
 PHP Version:      4.0.6
 New Comment:

Fixed in docs, will appear in a day or two...



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

[2001-12-14 13:49:08] yohgaki@php.net

Type = Documentation Problem.

When test.php is a script, $PHP_SELF === /test.php/some_string
http://example.com/test.php/some_string

Document should descript this behavior..


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

[2001-10-08 23:55:32] flaviovs@magnux.com

The docs says that $PHP_SELF contains "The filename of the currently
executing script, relative to the document root." However, if one uses
additional PATH_INFO data in the URL, they get inserted on $PHP_SELF as
well.

Example script: <?= $PHP_SELF ?>

http://example.org/example.php
	prints "/example.php"

http://example.org/example.php/foobar.html
	prints "/example.php/foobar.html"

If this is not a bug in PHP then the docs may need to be updated.

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


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



Thread (3 messages)

« previous php.dev (#79376) next »