Bug #18311: Log_sql call obsolute function
| From: | koyama at hoge dot org | Date: | Fri, 12 Jul 2002 12:29:12 +0000 |
| Subject: | Bug #18311: Log_sql call obsolute function | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-7685@lists.php.net to get a copy of this message | ||
From: koyama@hoge.org
Operating system: FreeBSD
PHP version: 4CVS-2002-07-12
PHP Bug Type: PEAR related
Bug description: Log_sql call obsolute function
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 bug report at http://bugs.php.net/?id=18311&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18311&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18311&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18311&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18311&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18311&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18311&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18311&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18311&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18311&r=globals