Bug #18350: PHP script executed twice

From: Date: Mon, 15 Jul 2002 13:01:57 +0000
Subject: Bug #18350: PHP script executed twice
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14200@lists.php.net to get a copy of this message
From: jobartim@voila.fr Operating system: Linux PHP version: 4.2.1 PHP Bug Type: Scripting Engine problem Bug description: PHP script executed twice Here is the script which gives problems, this script delete the lines number $i where $tab[$i] == "on" $fp = fopen($file,"r"); $fp2 = fopen("$file.tmp","w"); $i = 0; while($line = fgets($fp,4096)) { if ($tab[$i] != "on") fwrite($fp2,$line); $i++; } fclose($fp2); fclose($fp); rename("$file.tmp",$file); This script is called by a post form. -- Edit bug report at http://bugs.php.net/?id=18350&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18350&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18350&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18350&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18350&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18350&r=support Expected behavior: http://bugs.php.net/fix.php?id=18350&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18350&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18350&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18350&r=globals

« previous php.bugs (#14200) next »