#20733 [Opn->Csd]: Log: Missing error check when inserting log into database

From: Date: Sat, 30 Nov 2002 21:53:38 +0000
Subject: #20733 [Opn->Csd]: Log: Missing error check when inserting log into database
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11269@lists.php.net to get a copy of this message
ID: 20733 Updated by: jon@php.net Reported By: hopfgartner@rolmail.net -Status: Open +Status: Closed Bug Type: PEAR related PHP Version: 4.3.0RC2 -Assigned To: +Assigned To: jon New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot 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 in short time. Thank you for the report, and for helping us make PHP better. The change will show up in the next release of the Log package (1.5.3). Previous Comments: ------------------------------------------------------------------------ [2002-11-30 04:56:12] hopfgartner@rolmail.net Log 1.5.2 File Log/sql.php No error is checked when submitting the INSERT statement containing the Log message. It could help diagnose problems if this would look like: $res = $this->_db->query($q); if (DB::isError($res)) { die($res->getMessage()); } Regards, Peter Hopfgartner ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20733&edit=1

« previous php.pear.dev (#11269) next »