php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2265 I get a session halted when running null queries.
Submitted: 1999-09-08 14:57 UTC Modified: 1999-09-16 04:59 UTC
From: vince at mha dot ca Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0 Beta 2 OS: Linux 2.2.5 (RedHat 6.0)
Private report: No CVE-ID: None
 [1999-09-08 14:57 UTC] vince at mha dot ca
./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);
  }
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-16 04:59 UTC] sas at cvs dot php dot net
This is fixed in the current PHPLIB code.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 11:01:32 2024 UTC