48 $ret =
$conn->query( $sql, MYSQLI_USE_RESULT );
61 # Avoid suppressed fatal error, which is very hard to track down
64 .
" have you compiled PHP with the --with-mysqli option?\n" );
74 $realServer = $hostAndPort[0];
75 if ( $hostAndPort[1] ) {
76 $port = $hostAndPort[1];
81 list( $realServer, $socket ) = explode(
':', $realServer, 2 );
87 if ( $this->flags & self::DBO_SSL ) {
97 if ( $this->flags & self::DBO_COMPRESS ) {
100 if ( $this->flags & self::DBO_PERSISTENT ) {
104 if ( $this->utf8Mode ) {
107 $mysqli->options( MYSQLI_SET_CHARSET_NAME,
'utf8' );
109 $mysqli->options( MYSQLI_SET_CHARSET_NAME,
'binary' );
111 $mysqli->options( MYSQLI_OPT_CONNECT_TIMEOUT, 3 );
113 if ( $mysqli->real_connect(
140 return $conn->set_charset( $charset );
149 return $conn->close();
158 return (
int)
$conn->insert_id;
165 if ( $this->conn instanceof mysqli ) {
166 return $this->conn->errno;
178 return $conn->affected_rows;
196 $object =
$res->fetch_object();
197 if ( $object ===
null ) {
209 $array =
$res->fetch_array();
210 if ( $array ===
null ) {
222 return $res->num_rows;
230 return $res->field_count;
239 $field =
$res->fetch_field_direct( $n );
262 $field =
$res->fetch_field_direct( $n );
273 $field =
$res->fetch_field_direct( $n );
284 return $res->data_seek( $row );
292 if (
$conn ===
null ) {
307 return $conn->real_escape_string( (
string)
$s );
317 if ( $this->conn instanceof mysqli ) {
318 return (
string)$this->conn->thread_id;
329 return parent::getBindingHandle();
336class_alias( DatabaseMysqli::class,
'DatabaseMysqli' );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
A collection of public static functions to play with IP address and IP ranges.
static splitHostAndPort( $both)
Given a host/port string, like one might find in the host part of a URL per RFC 2732,...
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret