php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18311 Log_sql call obsolute function
Submitted: 2002-07-12 08:29 UTC Modified: 2011-06-13 20:44 UTC
From: koyama at hoge dot org Assigned: cox (profile)
Status: Closed Package: *General Issues
PHP Version: 4CVS-2002-07-12 OS: FreeBSD
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: koyama at hoge dot org
New email:
PHP Version: OS:

 

 [2002-07-12 08:29 UTC] koyama at hoge dot org
Log_sql class can't work, because call DB::isWarning() in open() method. I think DB::isWarning() is obsolute now.

patch:
RCS file: /repository/pear/Log/Log/sql.php,v
retrieving revision 1.4
diff -u -r1.4 sql.php
--- sql.php     29 Apr 2002 05:18:45 -0000      1.4
+++ sql.php     12 Jul 2002 12:28:32 -0000
@@ -73,7 +73,7 @@
     {
         if (!$this->_opened) {
             $this->db = &DB::connect($this->dsn, true);
-            if (DB::isError($this->db) || DB::isWarning($this->db)) {
+            if (DB::isError($this->db)) {
                 return false;
             }
             $this->_opened = true;

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-12 09:59 UTC] cox@php.net
This patch is right. DB_Warning was dropped since the 1.3 release.

Tomas V.V.Cox
 [2002-07-15 06:55 UTC] cox@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
 [2011-06-13 20:44 UTC] cox@php.net
-Package: PEAR related +Package: *General Issues -Assigned To: +Assigned To: cox
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 03:00:02 2026 UTC