|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24979 $PHP_SELF not determined
Submitted: 2003-08-08 01:11 UTC Modified: 2003-08-08 03:44 UTC
From: sgerrand at mac dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.3.2 OS: Mac OS X/10.2.6
Private report: No CVE-ID: None
 [2003-08-08 01:11 UTC] sgerrand at mac dot com
Configure Command 
 './configure' '--prefix=/usr/local/php' '--with-
config-file-path=/usr/local/php/lib' '--with-apxs' '--
with-iconv=/usr/local/php' '--with-openssl=/usr' '--
with-zlib=/usr' '--with-mysql' '--with-pgsql=/Users/
marc/entropy-cvs/php-module/build/postgresql-build' '--
with-gd' '--with-png-dir=/usr/local/php' '--with-
freetype-dir=/usr/local/php' '--with-t1lib=/usr/local/
php' '--with-jpeg-dir=/usr/local/php' '--with-tiff-
dir=/usr/local/php' '--with-curl=/usr/local/php' '--
with-mcal=/usr/local/php' '--with-mcrypt=/usr/local/
php' '--with-mhash=/usr/local/php' '--with-mcve=/usr/
local/php' '--with-pdflib=/usr/local/php' '--with-
imap=../imap-2002d' '--with-imap-ssl=/usr' '--with-
expat-dir=/usr/local/php' '--with-gettext=/usr/local/
php' '--with-dom=/usr/local/php' '--with-dom-xslt=/usr/
local/php' '--with-dom-exslt=/usr/local/php' '--with-
ldap' '--with-xmlrpc' '--with-xml' '--with-iodbc' '--
with-xslt-sablot=/usr/local/php' '--enable-xslt' '--
enable-sockets' '--enable-dbx' '--enable-dbase' '--
enable-trans-sid' '--enable-exif' '--enable-wddx' '--
enable-ftp' '--enable-mbstring

Reproduce code:
<?php echo $PHP_SELF; ?>

Expected result:
output of the script's current location
or the equivalent of
<?php echo $_SERVER[PHP_SELF]; ?>

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-08 03:44 UTC]
Works fine with latest stable CVS (and PHP 4.3.3RC3)

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jul 26 02:01:23 2021 UTC