ID:               26523
 Updated by:       [EMAIL PROTECTED]
 Reported By:      cameron at toucanresolve dot co dot uk
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Suse Linux
 PHP Version:      4.3.3
 New Comment:

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. 

Thank you for your interest in PHP.

Broken HTML generally does this.
Also, header("Location..") expects a full url. 
 
No bug here.




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

[2003-12-04 09:18:19] cameron at toucanresolve dot co dot uk

Description:
------------
When running some scripts the scripts runs twice. We are using apache 2
on a suse linux box. It generaly happens when the header function is
being used with the location header. The script want get a far as the
header but will re-run. If i put a die in it wont die and will still
run twice. I have tested this by adding a seesion var names count and
incrementing it each time the script is run. I always get two.

Reproduce code:
---------------
<?php
  
  session_start();

  if(!isset($_SESSION["Count"])){
      $_SESSION["Count"]++;
  }
  else{
      $_SESSION["Count"] = 0;
  }

  header("Location:gosomeware.php");

?>

Expected result:
----------------
Should out put 0

Actual result:
--------------
1


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


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

Reply via email to