*/
protected function mysqlFieldType( $res, $n ) {
$field = $res->fetch_field_direct( $n );
+
return $field->type;
}
* @return string
*/
protected function mysqlRealEscapeString( $s ) {
+ if ( is_integer( $s ) ) {
+ // HHVM fatals passing numbers to real_escape_string
+ $s = (string) $s;
+ }
return $this->mConn->real_escape_string( $s );
}