From:             
Operating system: RHEL/CentOS
PHP version:      5.3.6
Package:          Session related
Bug Type:         Bug
Bug description:Unable to open sessions while MySQL DB connection is open

Description:
------------
On RHEL(or Centos) 5.6 running any available PHP package thru RedHat and
the latest version of PHP (5.3.6).

Run first script provided in a browser, then while that is running, fire up
the second script. The second script will not finish until the first one
calls the session_write_close() function.

Test script:
---------------
=== 1.php ===
<?php
$counter=1;
$DB= mysql_connect(localhost,$user,$pass,true);
mysql_select_db("database");

session_start();
echo "Starting...\n";
while ( $counter <= 5 ) 
{
        echo "$counter ... \n";
        sleep(2);
        $counter++;
}
echo "Done!... \n";
session_write_close();
?>

=== 2.php ===
<?php
session_start();
echo "TESTING!\n";
session_write_close();
?>

Expected result:
----------------
When both scripts are run at the same time, the second script should exit
(nearly) immediately after opening a session, echoing the TESTING line,
then closing the session. After the while loop is done in the first script,
it should exit as expected. 

Actual result:
--------------
When the both scripts are executed at the same time (or one right after the
other), the second script hangs at the 'session_start()' line until the
first script is done.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=55151&edit=1
-- 
Try a snapshot (PHP 5.2):            
https://bugs.php.net/fix.php?id=55151&r=trysnapshot52
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55151&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55151&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55151&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55151&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55151&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55151&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55151&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55151&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55151&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55151&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55151&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55151&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55151&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55151&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55151&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55151&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55151&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55151&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55151&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55151&r=mysqlcfg
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55151&r=trysnapshot54

Reply via email to