[php-maint] Bug#464389: php5-cgi: _SERVER["PHP_SELF"] ($PHP_SELF) is empty

Krzysztof Krzyzaniak (eloy) eloy at debian.org
Wed Feb 6 15:45:38 UTC 2008

Package: php5-cgi
Version: 5.2.5-2
Severity: normal

when running php in fast-cgi mode on lighttpd server _SERVER["PHP_SELF"] has no value set. 
it was worked like month ago so I suspected some new patches in php5 package.

print_r( $_SERVER ); shows:

    [PATH] => /sbin:/bin:/usr/sbin:/usr/bin
    [SHELL] => /usr/bin/zsh
    [USER] => root
    [PHP_FCGI_MAX_REQUESTS] => 10000
    [SERVER_SOFTWARE] => lighttpd/1.4.18
    [SERVER_NAME] => www.l1.jumon.net
    [SERVER_PORT] => 80
    [SERVER_ADDR] =>
    [REMOTE_PORT] => 36662
    [REMOTE_ADDR] =>
    [SCRIPT_NAME] => /test.php
    [PATH_INFO] => 
    [SCRIPT_FILENAME] => /srv/web/l1/test.php
    [DOCUMENT_ROOT] => /srv/web/l1
    [REQUEST_URI] => /test.php
    [QUERY_STRING] => 
    [REDIRECT_STATUS] => 200
    [HTTP_HOST] => www.l1.jumon.net
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20071128 Iceweasel/ (Debian-
    [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    [HTTP_ACCEPT_LANGUAGE] => pl,en-us;q=0.7,en;q=0.3
    [HTTP_ACCEPT_ENCODING] => gzip,deflate
    [HTTP_KEEP_ALIVE] => 300
    [HTTP_CONNECTION] => keep-alive
    [HTTP_CACHE_CONTROL] => max-age=0
    [PHP_SELF] => 
    [REQUEST_TIME] => 1202312422
    [argv] => Array

    [argc] => 0

phpinfo() shows:

_SERVER["PHP_SELF"]	no value

Directive		Local Value	Master Value
allow_call_time_pass_reference		On     On
allow_url_fopen				On     On
allow_url_include			Off    Off
always_populate_raw_post_data		Off    Off
arg_separator.input			&      &
arg_separator.output			&      &
asp_tags				Off    Off
auto_append_file			no value	no value
auto_globals_jit			On On
auto_prepend_file			no value	no value
browscap				no value	no value
default_charset				no value	no value
default_mimetype			text/html	text/html
define_syslog_variables			Off		Off
disable_classes				no value	no value
disable_functions			no value	no value
display_errors				On On
display_startup_errors			Off	Off
doc_root				no value	no value
docref_ext				no value	no value
docref_root				no value	no value
enable_dl				Off		Off
error_append_string			no value	no value
error_log				syslog		syslog
error_prepend_string			no value	no value
error_reporting				6135		6135
expose_php				On		On
extension_dir				/usr/lib/php5/20060613+lfs	/usr/lib/php5/20060613+lfs
file_uploads				On				On
highlight.bg				#FFFFFF				#FFFFFF
highlight.comment			#FF8000				#FF8000
highlight.default			#0000BB				#0000BB
highlight.html				#000000				#000000
highlight.keyword			#007700				#007700
highlight.string			#DD0000				#DD0000
html_errors				On				On
ignore_repeated_errors			Off				Off
ignore_repeated_source			Off				Off
ignore_user_abort			Off				Off
implicit_flush				Off				Off
include_path				.:/usr/share/php:/usr/share/pear	.:/usr/share/php:/usr/share/pear
log_errors				On					On
log_errors_max_len			1024					1024
magic_quotes_gpc			On					On
magic_quotes_runtime			Off					Off
magic_quotes_sybase			Off					Off
mail.force_extra_parameters		no value				no value
max_execution_time			30 30
max_input_nesting_level			64 64
max_input_time				60 60
memory_limit				256M	256M
open_basedir				no value	no value
output_buffering			no value	no value
output_handler				no value	no value
post_max_size				8M 8M
precision				12 12
realpath_cache_size			16K	16K
realpath_cache_ttl			120	120
register_argc_argv			On	On
register_globals			Off	Off
register_long_arrays			On	On
report_memleaks				On	On
report_zend_debug			On	On
safe_mode				Off	Off
safe_mode_exec_dir			no value	no value
safe_mode_gid				Off		Off
safe_mode_include_dir			no value	no value
sendmail_from				no value	no value
sendmail_path				/usr/sbin/sendmail -t -i	/usr/sbin/sendmail -t -i 
serialize_precision			100		   100
short_open_tag				On		   On
SMTP					localhost	   localhost
smtp_port				25		   25
sql.safe_mode				Off		   Off
suhosin.log.phpscript			0		   0
suhosin.log.phpscript.is_safe		Off		   Off
suhosin.log.phpscript.name		no value	   no value
suhosin.log.sapi			no value	   no value
suhosin.log.script			no value	   no value
suhosin.log.script.name			no value	   no value
suhosin.log.syslog			no value	   no value
suhosin.log.syslog.facility		no value	   no value
suhosin.log.syslog.priority		no value	   no value
suhosin.log.use-x-forwarded-for		Off		   Off
track_errors				Off		   Off
unserialize_callback_func		no value	   no value
upload_max_filesize			2M 2M
upload_tmp_dir				no value	no value
user_dir				no value	no value
variables_order				EGPCS		EGPCS
xmlrpc_error_number			0		0
xmlrpc_errors				Off		Off
y2k_compliance				On		On
zend.ze1_compatibility_mode		Off		Off

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pl_PL.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-cgi depends on:
ii  libbz2-1.0            1.0.4-2            high-quality block-sorting file co
ii  libc6                 2.7-6              GNU C Library: Shared libraries
ii  libcomerr2            1.40.5-2           common error description library
ii  libdb4.6              4.6.21-5           Berkeley v4.6 Database Libraries [
ii  libkrb53              1.6.dfsg.3~beta1-2 MIT Kerberos runtime libraries
ii  libmagic1             4.23-1             File type determination library us
ii  libpcre3              7.6-1              Perl 5 Compatible Regular Expressi
ii  libssl0.9.8           0.9.8g-4           SSL shared libraries
ii  libxml2               2.6.31.dfsg-1      GNOME XML library
ii  mime-support          3.40-1             MIME files 'mime.types' & 'mailcap
ii  php5-common           5.2.5-2            Common files for packages built fr
ii  ucf                   3.004              Update Configuration File: preserv
ii  zlib1g                1:  compression library - runtime

php5-cgi recommends no packages.

-- no debconf information

More information about the pkg-php-maint mailing list