cvs: pear /DB/DB mysqli.php

From: Date: Thu, 29 Apr 2004 18:34:31 +0000
Subject: cvs: pear /DB/DB mysqli.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-18967@lists.php.net to get a copy of this message
danielc Thu Apr 29 14:34:31 2004 EDT Modified files: /pear/DB/DB mysqli.php Log: Use mysqli_connect_error() to trap connect errors rather than myqli_error(). http://cvs.php.net/diff.php/pear/DB/DB/mysqli.php?r1=1.19&r2=1.20&ty=u Index: pear/DB/DB/mysqli.php diff -u pear/DB/DB/mysqli.php:1.19 pear/DB/DB/mysqli.php:1.20 --- pear/DB/DB/mysqli.php:1.19 Thu Apr 29 00:41:47 2004 +++ pear/DB/DB/mysqli.php Thu Apr 29 14:34:31 2004 @@ -18,7 +18,7 @@ // | Maintainer: Daniel Convissor <danielc@php.net> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.19 2004/04/29 04:41:47 danielc Exp $ +// $Id: mysqli.php,v 1.20 2004/04/29 18:34:31 danielc Exp $ // EXPERIMENTAL @@ -35,7 +35,7 @@ * Note that persistent connections no longer exist. * * @package DB - * @version $Id: mysqli.php,v 1.19 2004/04/29 04:41:47 danielc Exp $ + * @version $Id: mysqli.php,v 1.20 2004/04/29 18:34:31 danielc Exp $ * @category Database * @author Chaillan Nicolas <nicos@php.net> */ @@ -141,7 +141,7 @@ @ini_restore('track_errors'); if (!$conn) { - if (($err = @mysqli_error()) != '') { + if (($err = @mysqli_connect_error()) != '') { return $this->raiseError(DB_ERROR_CONNECT_FAILED, null, null, null, $err); } elseif (empty($php_errormsg)) {

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