RE: PHP 4.0 Bug #8270 Updated: problem when including phpinfo() c ommand with session

From: Date: Sun, 17 Dec 2000 22:31:58 +0000
Subject: RE: PHP 4.0 Bug #8270 Updated: problem when including phpinfo() c ommand with session
Groups: php.dev 
Request: Send a blank email to php-dev+get-41694@lists.php.net to get a copy of this message
As requested: I disabled the "show pictures" in internet explorer (version 5.5 Sp1), and you are correct. The script behaves as expected (but the 2 logos dont show of course). I also noticed that when the "show pictures" is on, the first load of the page does not display either of the logos (and the counter is 1). Clicking on refresh displays both logos (and the counter increments to 4 as described). I want to thank you for your response. Now that I know the cause, I will simply not use phpinfo() in this manner. Thanks again, Steven > -----Original Message----- > From: Bug Database [mailto:php-dev@lists.php.net] > Sent: Thursday, December 14, 2000 11:32 PM > To: web@sorbom.net > Subject: PHP 4.0 Bug #8270 Updated: problem when including phpinfo() > command with session > > > ID: 8270 > Updated by: hholzgra > Reported By: web@sorbom.net > Old-Status: Open > Status: Feedback > Bug Type: *Function Specific > Assigned To: > Comments: > > doesn't happen with Linux/Apache > > i guess the two additional count steps came > from the sub-requests for the two logos shown > by phpinfo > > could you please try to use your script with image > loading disabled in your browser and see if this > changes the effect? > > Previous Comments: > -------------------------------------------------------------- > ------------- > > [2000-12-15 01:08:58] web@sorbom.net > The following simple script should increment the counter by 1 > on each reload. Instead it increments by 3 on the first > reload, then increments by 1 on subsequent reloads. Removing > the phpinfo() command allows the counter to operate correctly. > > Placing the phpinfo() command before the session start does > not work either. > > Please let me know if I have done something wrong, or if this > is a real problem. > > I am not running the isapi module. > > Thanks > Steven > > > <html><head><title>PHP Test</title></head> > <body> > > > <? > // initialize a session > session_start(); > > // register a session variable > session_register ("counter"); > > // increment value of counter > $counter++; > > // Display a cute message with counter > echo("You have reloaded this page $counter times.<P>"); > > // Display whole bunch of information > phpinfo(); > > > ?> > </body></html> > > -------------------------------------------------------------- > ------------- > > > Full Bug description available at: http://bugs.php.net/?id=8270 >

« previous php.dev (#41694) next »