Bug #18311 Updated: Log_sql call obsolute function
| From: | cox@php.net | Date: | Mon, 15 Jul 2002 10:55:13 +0000 |
| Subject: | Bug #18311 Updated: Log_sql call obsolute function | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7722@lists.php.net to get a copy of this message | ||
ID: 18311
Updated by: cox@php.net
Reported By: koyama@hoge.org
-Status: Open
+Status: Closed
Bug Type: PEAR related
Operating System: FreeBSD
PHP Version: 4CVS-2002-07-12
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-07-12 09:59:17] cox@php.net
This patch is right. DB_Warning was dropped since the 1.3 release.
Tomas V.V.Cox
------------------------------------------------------------------------
[2002-07-12 08:29:12] koyama@hoge.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;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18311&edit=1