cvs: pear(MDB_1) /MDB/MDB oci8.php

From: Date: Fri, 12 Mar 2004 14:28:47 +0000
Subject: cvs: pear(MDB_1) /MDB/MDB oci8.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-17341@lists.php.net to get a copy of this message
lsmith Fri Mar 12 09:28:47 2004 EDT Modified files: (Branch: MDB_1) /pear/MDB/MDB oci8.php Log: - fixed bug #590 - oci8raiseError now only uses $this->connection if a connection has been established http://cvs.php.net/diff.php/pear/MDB/MDB/oci8.php?r1=1.21.4.21&r2=1.21.4.22&ty=u Index: pear/MDB/MDB/oci8.php diff -u pear/MDB/MDB/oci8.php:1.21.4.21 pear/MDB/MDB/oci8.php:1.21.4.22 --- pear/MDB/MDB/oci8.php:1.21.4.21 Fri Mar 12 09:16:55 2004 +++ pear/MDB/MDB/oci8.php Fri Mar 12 09:28:47 2004 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ -// $Id: oci8.php,v 1.21.4.21 2004/03/12 14:16:55 lsmith Exp $ +// $Id: oci8.php,v 1.21.4.22 2004/03/12 14:28:47 lsmith Exp $ require_once('MDB/Common.php'); @@ -182,7 +182,11 @@ function oci8RaiseError($errno = NULL, $message = NULL) { if ($errno === NULL) { - $error = @OCIError($this->connection); + if ($this->connection) { + $error = @OCIError($this->connection); + } else { + $error = @OCIError(); + } return($this->raiseError($this->errorCode($error['code']), NULL, NULL, $message, $error['message'])); } elseif (is_resource($errno)) {

« previous php.pear.cvs (#17341) next »