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

From: Date: Tue, 09 Oct 2001 03:55:32 +0000
Subject: Bug #13606: $PHP_SELF not always point to script name
Groups: php.dev 
Request: Send a blank email to php-dev+get-67577@lists.php.net to get a copy of this message
From: flaviovs@magnux.com Operating system: Linux+Apache 1.3.20+PHP (DSO) PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: $PHP_SELF not always point to script name 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 bug report at: http://bugs.php.net/?id=13606&edit=1

« previous php.dev (#67577) next »