Bug #15186: define/mysql_connect problem

From: Date: Wed, 23 Jan 2002 20:20:51 +0000
Subject: Bug #15186: define/mysql_connect problem
Groups: php.dev 
Request: Send a blank email to php-dev+get-77922@lists.php.net to get a copy of this message
From: derek@bluegenesis.com Operating system: Linux PHP version: 4.1.1 PHP Bug Type: MySQL related Bug description: define/mysql_connect problem Previous to version 4.1.1, using define() to define a handle to a MySQL connection worked fine: define(DB, mysql_connect(host,user,pass)); In PHP 4.1.1, if the above is done, then the script will hang for a long time (for a minute or so) if other mysql connections are attempted to be made. i.e.: function hang_mysql() { define(DB1, mysql_connect(host,user,pass)); define(DB2, mysql_connect(host,user,pass)); } function doesnt_hang() { $db1 = mysql_connect(host,user,pass); $db2 = mysql_connect(host,user,pass); } This wasn't a problem in PHP 4.0.6 and older versions. -- Edit bug report at: http://bugs.php.net/?id=15186&edit=1

« previous php.dev (#77922) next »