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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vince at mha dot ca
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 10:01:34 2025 UTC