From: sambukkaa at hotmail dot com Operating system: Windows PHP version: 5.0.0b4 (beta4) PHP Bug Type: Scripting Engine problem Bug description: PHP doesn't wait for the child to finish execution!
Description: ------------ PHP doesn't wait for the child to finish execution but incase of sessions it is critical. To test it you need to create 2 files as followed: file 1: main.php file 2: sub.php Reproduce code: --------------- file 1: main.php <html><head><title>file name: main.php</title></head><body> <?$_SESSION['var']=1; "echo The session variable ist set to ". $_SESSION['var'] ."</br>";?> <p><a href="sub.php" target="_blank"">call the sub.php file that opens the session variable "var" with the value 1, but:</a> <?// PHP doesn't wait for the child to finish execution! $_SESSION['var']=0;?> </body> </html> file 2: sub.php <?$text="You have opened the sub.php file, receiving a session variable 'var' which shuld have the value of 1 but _SESSION['var']=". $_SESSION['var']; echo $text;?> Expected result: ---------------- It MUST show the real value (1) before changing it to 0. you can test it on my server too: http://motion4u.sytes.net/phptest/main.php -- Edit bug report at http://bugs.php.net/?id=27478&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27478&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27478&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27478&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27478&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27478&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27478&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27478&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27478&r=support Expected behavior: http://bugs.php.net/fix.php?id=27478&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27478&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27478&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27478&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27478&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27478&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27478&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27478&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27478&r=float