| version 1.3, 2011/06/17 13:56:39 |
version 1.4, 2017/06/09 15:05:09 |
|
|
| * The PEAR DB driver for PHP's mysqli extension |
* The PEAR DB driver for PHP's mysqli extension |
| * for interacting with MySQL databases |
* for interacting with MySQL databases |
| * |
* |
| * PHP versions 4 and 5 |
* PHP version 5 |
| * |
* |
| * LICENSE: This source file is subject to version 3.0 of the PHP license |
* LICENSE: This source file is subject to version 3.0 of the PHP license |
| * that is available through the world-wide-web at the following URI: |
* that is available through the world-wide-web at the following URI: |
| Line 43 require_once 'DB/common.php'; |
|
| Line 43 require_once 'DB/common.php'; |
|
| * @author Daniel Convissor <danielc@php.net> |
* @author Daniel Convissor <danielc@php.net> |
| * @copyright 1997-2007 The PHP Group |
* @copyright 1997-2007 The PHP Group |
| * @license http://www.php.net/license/3_0.txt PHP License 3.0 |
* @license http://www.php.net/license/3_0.txt PHP License 3.0 |
| * @version Release: 1.7.14RC2 |
* @version Release: 1.9.2 |
| * @link http://pear.php.net/package/DB |
* @link http://pear.php.net/package/DB |
| * @since Class functional since Release 1.6.3 |
* @since Class functional since Release 1.6.3 |
| */ |
*/ |
| Line 224 class DB_mysqli extends DB_common |
|
| Line 224 class DB_mysqli extends DB_common |
|
| // {{{ constructor |
// {{{ constructor |
| |
|
| /** |
/** |
| * This constructor calls <kbd>$this->DB_common()</kbd> |
* This constructor calls <kbd>parent::__construct()</kbd> |
| * |
* |
| * @return void |
* @return void |
| */ |
*/ |
| function DB_mysqli() |
function __construct() |
| { |
{ |
| $this->DB_common(); |
parent::__construct(); |
| } |
} |
| |
|
| // }}} |
// }}} |
| Line 497 class DB_mysqli extends DB_common |
|
| Line 497 class DB_mysqli extends DB_common |
|
| */ |
*/ |
| function freeResult($result) |
function freeResult($result) |
| { |
{ |
| return is_resource($result) ? mysqli_free_result($result) : false; |
if (! $result instanceof mysqli_result) { |
| |
return false; |
| |
} |
| |
mysqli_free_result($result); |
| |
return true; |
| } |
} |
| |
|
| // }}} |
// }}} |
| Line 993 class DB_mysqli extends DB_common |
|
| Line 997 class DB_mysqli extends DB_common |
|
| $got_string = false; |
$got_string = false; |
| } |
} |
| |
|
| if (!is_a($id, 'mysqli_result')) { |
if (!is_object($id) || !is_a($id, 'mysqli_result')) { |
| return $this->mysqliRaiseError(DB_ERROR_NEED_MORE_DATA); |
return $this->mysqliRaiseError(DB_ERROR_NEED_MORE_DATA); |
| } |
} |
| |
|
| Line 1031 class DB_mysqli extends DB_common |
|
| Line 1035 class DB_mysqli extends DB_common |
|
| ? $this->mysqli_types[$tmp->type] |
? $this->mysqli_types[$tmp->type] |
| : 'unknown', |
: 'unknown', |
| // http://bugs.php.net/?id=36579 |
// http://bugs.php.net/?id=36579 |
| |
// Doc Bug #36579: mysqli_fetch_field length handling |
| |
// https://bugs.php.net/bug.php?id=62426 |
| |
// Bug #62426: mysqli_fetch_field_direct returns incorrect |
| |
// length on UTF8 fields |
| 'len' => $tmp->length, |
'len' => $tmp->length, |
| 'flags' => $flags, |
'flags' => $flags, |
| ); |
); |