From: leoalassia at gmail dot com Operating system: UNIX PHP version: 4.4.1 PHP Bug Type: Session related Bug description: it executes the same script twice
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 .... -- Edit bug report at http://bugs.php.net/?id=35645&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35645&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35645&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35645&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35645&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35645&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35645&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35645&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35645&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35645&r=support Expected behavior: http://bugs.php.net/fix.php?id=35645&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35645&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35645&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35645&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35645&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35645&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35645&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35645&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35645&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35645&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35645&r=mysqlcfg