note 17315 deleted from function.mysql-unbuffered-query by jimw

From: Date: Tue, 18 Dec 2001 23:28:24 +0000
Subject: note 17315 deleted from function.mysql-unbuffered-query by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23313@lists.php.net to get a copy of this message
There is a bug which causes php to hang (_may_ be from time to time) when using this function From the php-dev: Dec 4 2001: Derick Rethans : Hello, yes yes... I can still win my bet :) The following script: <?php     $query = 'SELECT * FROM users';     mysql_connect ('localhost', 'db_user', 'db_pass');     mysql_select_db ('ecommerce');     $res = mysql_unbuffered_query ($query);     while ($row = mysql_fetch_row ($res)) {         echo $row[0]."\n";     }     $res = mysql_unbuffered_query ($query);     while ($row = mysql_fetch_row ($res)) {         echo $row[0]."\n";     } ?> Zeev Suraski : Does it work with 4.0.6?  If it behaves the same, it's not a showstopper.  Basically, 4.1.0 comes out based on RC5 unless we find things that (a) Break things that used to work in a previous version, for a potentially large number of people, or (b) Pose a huge security risk or a major stability problem Unbuffered queries were introduced in 4.0.6, so if they broke in 4.1.0, it may be necessary to fix.  If the status hasn't changed, then it can wait for 4.2.0. Zeev Derick Rethans : On Tue, 4 Dec 2001, Zeev Suraski wrote: > Does it work with 4.0.6?  If it behaves the same, it's not a > showstopper. It does not work with 4.0.6 either... seems it has always been in. > Unbuffered queries were introduced in 4.0.6, so if they broke in 4.1.0, it > may be necessary to fix.  If the status hasn't changed, then it can wait > for 4.2.0. IMO, they still need to be fixed, but not in 4.1.0. Derick

« previous php.notes (#23313) next »