title: Strict standard - mysqli::next_result() - there is no next result. please call more_results() to check
body: <p>This code is working correctly on my localhost (Xampp, PHP 5.4) but when I deploy this code on a server (Wamp, PHP 5.5), it's firing this error for <code>$mysqli-&gt;multiquery()</code>.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>if($mysqli-&gt;multi_query("CALL `wc_new_tyre_article` ('$season','$dimB','$dimQ','$dimD','$com_id','$adr_id')")){
              do{
                  if($result = $mysqli-&gt;store_result( )){
  
                      while($row = $result-&gt;fetch_object( )){
                          if(isset($row-&gt;empty))
                              break 1;
                          $articleId = $row-&gt;ART_ID;
                          $ggrId = $row-&gt;GGR_ID;
                          $articles[] = $row;
                      }
                      $result-&gt;close();
                  }
              }while($mysqli-&gt;next_result() &amp;&amp; $mysqli-&gt;more_results());
              for($index = 0;$index&lt;count($articles);$index++){
                  $articleId = $articles[$index]-&gt;ART_ID;
                  $ggrId = $articles[$index]-&gt;GGR_ID;
                  if(!empty($articleId) &amp;&amp; !empty($ggrId)){
                      if($stk_results = $mysqli-&gt;query("CALL `wc_get_stock` ('$articleId','$ggrId','$com_id')")){
                         while($rows = mysqli_fetch_object($stk_results)){
                             $articles[$index]-&gt;STOCK = $rows;
                             while($mysqli-&gt;next_result()){
                                  if($l_result = $mysqli-&gt;store_result())
                                      $l_result-&gt;free();
                              }
                         }
                      }
                  }
              }
  
              return $articles; 
  </code></pre>
  
  <p>As per above code first I am calling <code>wc_new_tyre_article</code> which return multiple result set. Using this results I call another SP <code>wc_get_stock</code> to fetch another results. </p>
  
  <p>I have tried all solutions which are was available here but none of them are working. </p>
  
  <p>I have tried <code>error_reporting(E_ALL ^ E_STRICT)</code>.</p>