ID:               22741
 Comment by:       very-buggy at notphp dot net
 Reported By:      bodgadle at yahoo dot co dot uk
 Status:           Open
 Bug Type:         Session related
 Operating System: Windows 2000 SP3
 PHP Version:      4.3.2-RC
 New Comment:

i can confirm this: still for w2k & 4.3.1.

just spent 3 hours figuring out what the real problem behind this all
is. i know it has to do with the assignment of globals to sessions but
frankly everything is contradicting: the doc ref.session.php clearly
states:

----
If you are using $_SESSION and disable register_globals, do not use
session_register(), session_is_registered() and session_unregister(),
if your scripts shall work in PHP 4.2 and earlier. You can use these
functions in 4.3 and later. 
---- and then ---
If register_globals is disabled, only members of the global associative
array $_SESSION can be registered as session variables. The restored
session variables will only be available in the array $_SESSION. 
----

it just leaves os with tweaking compat.42 and warn. but as seen, the
message still won't go away. 

btw: try google with the warning message and see how many websites are
already cluttered with this... way to go...


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

[2003-03-18 03:21:21] bodgadle at yahoo dot co dot uk

Hi there,

Here is the output of my phpinfo(). even though it shows the settings
for session.bug_compat_42 as being on, i'm still getting the errors
below shown in the logile


PHP Version 4.3.2-RC 

System  Windows NT NUSWEB1 5.0 build 2195  
Build Date  Mar 17 2003 10:15:18  
Server API  Apache  
Virtual Directory Support  enabled  
Configuration File (php.ini) Path  C:\WINNT\php.ini  
PHP API  20020918  
PHP Extension  20020429  
Zend Extension  20021010  
Debug Build  no  
Thread Safety  enabled  
Registered PHP Streams  php, http, ftp, compress.zlib  

 This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
    with Zend Optimizer v2.1.0, Copyright (c) 1998-2003, by Zend
Technologies
 


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

PHP Credits

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

Configuration
PHP Core
Directive Local Value Master Value 
allow_call_time_pass_reference Off Off 
allow_url_fopen On On 
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_prepend_file no value no value 
browscap c:\winnt\system32\inetsrv\browscap.ini
c:\winnt\system32\inetsrv\browscap.ini 
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 Off Off 
display_startup_errors Off Off 
doc_root e:\www e:\www 
docref_ext no value no value 
docref_root http://www.php.net/ http://www.php.net/ 
enable_dl On On 
error_append_string no value no value 
error_log e:\www\php.log e:\www\php.log 
error_prepend_string no value no value 
error_reporting 2047 2047 
expose_php On On 
extension_dir ./ ./ 
file_uploads On On 
gpc_order GPC GPC 
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 .;c:\php4\pear .;c:\php4\pear 
log_errors On On 
log_errors_max_len 1024 1024 
magic_quotes_gpc On On 
magic_quotes_runtime On On 
magic_quotes_sybase Off Off 
max_execution_time 45 45 
max_input_time 60 60 
open_basedir no value no value 
output_buffering 4096 4096 
output_handler no value no value 
post_max_size 8M 8M 
precision 14 14 
register_argc_argv Off Off 
register_globals Off Off 
report_memleaks 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 [EMAIL PROTECTED] [EMAIL PROTECTED] 
sendmail_path no value no value 
short_open_tag Off Off 
SMTP 195.184.229.151 195.184.229.151 
smtp_port 25 25 
sql.safe_mode Off Off 
track_errors Off Off 
unserialize_callback_func no value no value 
upload_max_filesize 4M 4M 
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 Optimizer
Optimization Pass 1  enabled  
Optimization Pass 2  enabled  
Optimization Pass 3  enabled  
Optimization Pass 9  disabled  
Optimization Pass 10  disabled  
Zend Loader  enabled  
License Path  no value  


apache
Apache for Windows 95/NT  

Apache Version  Apache/1.3.24  
Apache Release  10324100  
Apache API Version  19990320  
Hostname:Port  www.xxxxxx.co.uk:80  
Timeouts  Connection: 300 - Keep-Alive: 15  

Directive Local Value Master Value 
child_terminate 0 0 
engine 1 1 
last_modified 0 0 
xbithack 0 0 


Apache Environment
Variable Value 
COMSPEC  C:\WINNT\system32\cmd.exe  
DOCUMENT_ROOT  e:/xxxxxx/www  
HTTP_ACCEPT  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, */*  
HTTP_ACCEPT_ENCODING  gzip, deflate  
HTTP_ACCEPT_LANGUAGE  en-gb  
HTTP_CONNECTION  Keep-Alive  
HTTP_HOST  www.xxxxxx.co.uk  
HTTP_USER_AGENT  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
.NET CLR 1.0.3705)  
PATH  C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Symantec\pcAnywhere\  
REMOTE_ADDR  xxx.xxx.xxx.xxx
REMOTE_PORT  2480  
SCRIPT_FILENAME  e:/xxxxxx/www/checkapi.php  
SERVER_ADDR  xxx.xxx.xxx.xxx  
SERVER_ADMIN  [EMAIL PROTECTED]  
SERVER_NAME  www.xxxxxx.co.uk  
SERVER_PORT  80  
SERVER_SIGNATURE  <ADDRESS>Apache/1.3.27 Server at www.xxxxxx.co.uk
Port 80</ADDRESS>  
SERVER_SOFTWARE  Apache/1.3.27 (Win32) PHP/4.3.2-RC  
SystemRoot  C:\WINNT  
WINDIR  C:\WINNT  
GATEWAY_INTERFACE  CGI/1.1  
SERVER_PROTOCOL  HTTP/1.1  
REQUEST_METHOD  GET  
QUERY_STRING  no value  
REQUEST_URI  /checkapi.php  
SCRIPT_NAME  /checkapi.php  


HTTP Headers Information
HTTP Request Headers 
HTTP Request  GET /checkapi.php HTTP/1.1  
Accept  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, */*  
Accept-Encoding  gzip, deflate  
Accept-Language  en-gb  
Connection  Keep-Alive  
Host  www.xxxxxx.co.uk  
User-Agent  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.0.3705)  
HTTP Response Headers 
X-Powered-By  PHP/4.3.2-RC  
Set-Cookie  PHPSESSID=420a9712cb08efe50bddc1ed43e892e9; path=/  
Expires  Thu, 19 Nov 1981 08:52:00 GMT  
Cache-Control  no-store, no-cache, must-revalidate, post-check=0,
pre-check=0  
Pragma  no-cache  
Keep-Alive  timeout=15, max=100  
Connection  Keep-Alive  
Transfer-Encoding  chunked  
Content-Type  text/html  


bcmath
BCMath support  enabled  


calendar
Calendar support  enabled  


com
Directive Local Value Master Value 
com.allow_dcom Off Off 
com.autoregister_casesensitive On On 
com.autoregister_typelib Off Off 
com.autoregister_verbose Off Off 
com.typelib_file no value no value 


ctype
ctype functions  enabled  


ftp
FTP support  enabled  


mysql
MySQL Support enabled 
Active Persistent Links  0  
Active Links  0  
Client API version  3.23.49  

Directive Local Value Master Value 
mysql.allow_persistent On On 
mysql.connect_timeout -1 -1 
mysql.default_host no value no value 
mysql.default_password no value no value 
mysql.default_port no value no value 
mysql.default_socket no value no value 
mysql.default_user no value no value 
mysql.max_links Unlimited Unlimited 
mysql.max_persistent Unlimited Unlimited 
mysql.trace_mode Off Off 


odbc
ODBC Support enabled 
Active Persistent Links  0  
Active Links  0  
ODBC library  Win32  

Directive Local Value Master Value 
odbc.allow_persistent On On 
odbc.check_persistent On On 
odbc.default_db no value no value 
odbc.default_pw no value no value 
odbc.default_user no value no value 
odbc.defaultbinmode return as is return as is 
odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes 
odbc.max_links Unlimited Unlimited 
odbc.max_persistent Unlimited Unlimited 


overload
User-Space Object Overloading Support  enabled  


pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled  
PCRE Library Version  3.92 11-Sep-2002  


session
Session Support  enabled  
Registered save handlers  files user  

Directive Local Value Master Value 
session.auto_start On On 
session.bug_compat_42 On On 
session.bug_compat_warn Off Off 
session.cache_expire 180 180 
session.cache_limiter nocache nocache 
session.cookie_domain no value no value 
session.cookie_lifetime 0 0 
session.cookie_path / / 
session.cookie_secure Off Off 
session.entropy_file no value no value 
session.entropy_length 0 0 
session.gc_dividend 500 500 
session.gc_maxlifetime 1440 1440 
session.gc_probability 1 1 
session.name PHPSESSID PHPSESSID 
session.referer_check no value no value 
session.save_handler files files 
session.save_path C:\PHP\sessions C:\PHP\sessions 
session.serialize_handler php php 
session.use_cookies On On 
session.use_only_cookies Off Off 
session.use_trans_sid Off Off 


standard
Regex Library  Bundled library enabled  
Dynamic Library Support  enabled  
Internal Sendmail Support for Windows  enabled  

Directive Local Value Master Value 
assert.active 1 1 
assert.bail 0 0 
assert.callback no value no value 
assert.quiet_eval 0 0 
assert.warning 1 1 
auto_detect_line_endings 0 0 
default_socket_timeout 30 30 
safe_mode_allowed_env_vars PHP_ PHP_ 
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH 
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry
a=href,area=href,frame=src,input=src,form=fakeentry 
user_agent no value no value 


tokenizer
Tokenizer Support  enabled  


wddx
WDDX Support  enabled  


xml
XML Support  active  
XML Namespace Support  active  
EXPAT Version  1.95.2  


zlib
ZLib Support  enabled  
Compiled Version  1.1.4  
Linked Version  1.1.4  

Directive Local Value Master Value 
zlib.output_compression Off Off 
zlib.output_compression_level -1 -1 
zlib.output_handler no value no value 


Additional Modules
Module Name 


Environment
Variable Value 
ALLUSERSPROFILE  C:\Documents and Settings\All Users  
CommonProgramFiles  C:\Program Files\Common Files  
COMPUTERNAME  NUSWEB1  
ComSpec  C:\WINNT\system32\cmd.exe  
NUMBER_OF_PROCESSORS  2
OS  Windows_NT  
Os2LibPath  C:\WINNT\system32\os2\dll;  
Path  C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Symantec\pcAnywhere\  
PATHEXT  .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH  
PROCESSOR_ARCHITECTURE  x86  
PROCESSOR_IDENTIFIER  x86 Family 6 Model 11 Stepping 1, GenuineIntel  
PROCESSOR_LEVEL  6  
PROCESSOR_REVISION  0b01  
ProgramFiles  C:\Program Files  
SystemDrive  C:  
SystemRoot  C:\WINNT  
TEMP  C:\WINNT\TEMP  
TMP  C:\WINNT\TEMP  
USERPROFILE  C:\Documents and Settings\Default User  
windir  C:\WINNT  


PHP Variables
Variable Value 
_SERVER["COMSPEC"] C:\\WINNT\\system32\\cmd.exe 
_SERVER["DOCUMENT_ROOT"] e:/www 
_SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, */* 
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate 
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-gb 
_SERVER["HTTP_CONNECTION"] Keep-Alive 
_SERVER["HTTP_HOST"] www.xxxxxx.co.uk 
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; .NET CLR 1.0.3705) 
_SERVER["PATH"]
C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem;C:\\Program
Files\\Symantec\\pcAnywhere\\ 
_SERVER["REMOTE_ADDR"] xxx.xxx.xxx.xxx
_SERVER["REMOTE_PORT"] 2480 
_SERVER["SCRIPT_FILENAME"] e:/www/checkapi.php 
_SERVER["SERVER_ADDR"] xxx.xxx.xxx.xxx 
_SERVER["SERVER_ADMIN"] [EMAIL PROTECTED] 
_SERVER["SERVER_NAME"] www.xxxxxx.co.uk 
_SERVER["SERVER_PORT"] 80 
_SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.27 Server at
www.xxxxxx.co.uk Port 80</ADDRESS>  
_SERVER["SERVER_SOFTWARE"] Apache/1.3.27 (Win32) PHP/4.3.2-RC 
_SERVER["SystemRoot"] C:\\WINNT 
_SERVER["WINDIR"] C:\\WINNT 
_SERVER["GATEWAY_INTERFACE"] CGI/1.1 
_SERVER["SERVER_PROTOCOL"] HTTP/1.1 
_SERVER["REQUEST_METHOD"] GET 
_SERVER["QUERY_STRING"] no value 
_SERVER["REQUEST_URI"] /checkapi.php 
_SERVER["SCRIPT_NAME"] /checkapi.php 
_SERVER["PATH_TRANSLATED"] e:/www/checkapi.php 
_SERVER["PHP_SELF"] /checkapi.php 
_ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users 
_ENV["CommonProgramFiles"] C:\\Program Files\\Common Files 
_ENV["COMPUTERNAME"] NUSWEB1 
_ENV["ComSpec"] C:\\WINNT\\system32\\cmd.exe 
_ENV["NUMBER_OF_PROCESSORS"] 2 
_ENV["OS"] Windows_NT 
_ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll; 
_ENV["Path"]
C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem;C:\\Program
Files\\Symantec\\pcAnywhere\\ 
_ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH 
_ENV["PROCESSOR_ARCHITECTURE"] x86 
_ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 11 Stepping 1,
GenuineIntel 
_ENV["PROCESSOR_LEVEL"] 6 
_ENV["PROCESSOR_REVISION"] 0b01 
_ENV["ProgramFiles"] C:\\Program Files 
_ENV["SystemDrive"] C: 
_ENV["SystemRoot"] C:\\WINNT 
_ENV["TEMP"] C:\\WINNT\\TEMP 
_ENV["TMP"] C:\\WINNT\\TEMP 
_ENV["USERPROFILE"] C:\\Documents and Settings\\Default User 
_ENV["windir"] C:\\WINNT 


PHP License
This program is free software; you can redistribute it and/or modify it
under the terms of the PHP License as published by the PHP Group and
included in the distribution in the file: LICENSE 

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 

If you did not receive a copy of the PHP license, or have any questions
about PHP licensing, please contact [EMAIL PROTECTED]

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/22741

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

Reply via email to