PHP 4.0 Bug #2265: I get a session halted when running null queries.
| From: | vince at mha dot ca | Date: | Wed, 08 Sep 1999 18:57:32 +0000 |
| Subject: | PHP 4.0 Bug #2265: I get a session halted when running null queries. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10733@lists.php.net to get a copy of this message | ||
From: vince@mha.ca
Operating system: Linux 2.2.5 (RedHat 6.0)
PHP version: 4.0 Beta 2
PHP Bug Type: MySQL related
Bug description: I get a session halted when running null queries.
./configure --with-mysql --enable-tracking-vars --with-apache=../apache_1.3.9
----
I don't know if this is a problem with php4 or phplib, but I now have to make sure queries are
not null before I run them. This isn't a big deal, but I'm just courious as to why I now
have to check? (I didn't have to check under php3.0.x or php4b1)
Old Code:
function DB_Sql($query = "") {
$this->query($query);
}
New Code:
function DB_Sql($query = "") {
if (strlen($query) > 0) {
$this->query($query);
}
}