Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1863
 
1865
 
1865
 
mysqli.php
_> 3131       if ($this->link = @mysqli_connect($this->server, $this->username, $this->password)) {
  3232         $this->setConnected(true);
  3333 
<>  34+        if ( version_compare(mysqli_get_server_info($this->link), '5.0.2') >= 0 ) {
   35+          $this->simpleQuery('set session sql_mode="STRICT_ALL_TABLES"');
   36+        }
   37+
3438         return true;
  3539       } else {
  3640         $this->setError(mysqli_connect_error(), mysqli_connect_errno());
     
 !
116120           $this->error_number = null;
  117121           $this->error_query = null;
  118122 
<>  123+          if ( mysqli_warning_count($this->link) > 0 ) {
   124+            $warning_query = @mysqli_query($this->link, 'show warnings');
   125+            while ( $warning = mysqli_fetch_row($warning_query) ) {
   126+              trigger_error(sprintf('[MYSQL] %s (%d): %s [QUERY] ' . $query, $warning[0], $warning[1], $warning[2]), E_USER_WARNING);
   127+            }
   128+            mysqli_free_result($warning_query);
   129+          }
   130+
<_ 119131           return $resource;
  120132         } else {
  121133           $this->setError(mysqli_error($this->link), mysqli_errno($this->link), $query);