| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2006-08-02 10:13 UTC] tony2001@php.net
  [2006-08-10 01:00 UTC] php-bugs at lists dot php dot net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 02:00:01 2025 UTC | 
Description: ------------ mysql_pconnect create too many connections , not using the same connection in x86_64 (web server and mysql server not in the same computer) I have test in 32bit system is okay, both using the same mysql5.0.22 Reproduce code: --------------- <?php function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } flush(); $t1=getmicrotime();//start time $db=mysql_pconnect("61.145.112.136", "test", "test"); if($db) echo $i.'connect successfully<br/>'; echo mysql_stat($db).'<br/>'; $t2=getmicrotime(); $tt=$t2-$t1; $sql="SHOW PROCESSLIST "; $res=mysql_query($sql); if($res){ $dbstatus=mysql_num_rows($res); }else $dbstatus=mysql_error(); //mysql_close($db); echo "there are ".$dbstatus." connections "; echo "time for connect is $tt ***"; ?>