php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35645 it executes the same script twice
Submitted: 2005-12-12 14:06 UTC Modified: 2005-12-12 14:19 UTC
From: leoalassia at gmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.4.1 OS: UNIX
Private report: No CVE-ID: None
 [2005-12-12 14:06 UTC] leoalassia at gmail dot com
Description:
------------
If you clic in the link to the same file, that only increments a count var in the session, you will see that it does twice.
i think that the problem is that "background" is written instead of "bgcolor".

Reproduce code:
---------------
file.php
--------
<table><tr><td background="#000000"> 
</td></tr></table>
<table><tr><td>require ($content);</td></tr></table>

content.php
-----------
<?php
if (!session_is_registered('countt')) {
session_register("countt");
$countt = 0;
}
else {
$countt++;
}
echo $countt;
?>
<a href="file.php?$content=content.php">click here to next count</a>



Expected result:
----------------
0 first time, next 1, 2, 3 ....

Actual result:
--------------
0 first time, next 2, 4, 6 ....

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-12 14:10 UTC] leoalassia at gmail dot com
I wrote wrong the link, it is:
<a href="file.php?content=content.php">click here to next count</a>
 [2005-12-12 14:19 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 03 08:01:31 2024 UTC