title: Strange Conflict between Apache, CURL and MySQL outputs?
body: <p>I have very strange situation...</p>
  
  <p><strong>Platform</strong>: Win7, apache24, mysqld 5.6.x, php5.5.10</p>
  
  <p><strong>query1</strong> = "SELECT abc FROM table1 WHERE id=123 " (result give me about 200 rows)</p>
  
  <p><strong>query2</strong> = "SELECT abc FROM table2 WHERE id=555 " (result give me about 200 rows)</p>
  
  <p><strong>In short, PHP code looks like this:</strong></p>
  
  <p><strong>step1</strong>. I'm using my own DB Wrapper and I make query1 to table1. In result I receive multiple rows from table1. I save it to php array using while loop.</p>
  
  <p><strong>step2</strong>. next I make curl requests to 3rd party API using foreach loop. Request are very simple and working fine at 150 other places in my script.</p>
  
  <p><strong>What is wrong?</strong></p>
  
  <p>Scripts are working fine.. but only one time after apache start/restart.</p>
  
  <p><strong>What going next?</strong></p>
  
  <ul>
  <li><p>When I try reload page for test it again - curl response is empty. http_code for curl request is 200, but request is empty.</p></li>
  <li><p>After apache restart script working again - one time.</p></li>
  <li><p>Without step1 curl working fine all time.</p></li>
  <li><p>And one more... when I try query2 (similar to query1) but for different table (query2 to table2) script works fine everytime (after refreshing too).</p></li>
  </ul>
  
  <p><strong>What i tried:</strong></p>
  
  <ul>
  <li>testing different headers in curl, </li>
  <li>curl options like curlopt_fresh_connect and all f... possible configurations.</li>
  <li>dumping printing all possible variables...</li>
  <li>googling, binging, yandexing.... </li>
  <li>after step1 I tired connect to different websites than API, google, websites without ssl etc - result is the same. Crash after 1 run.</li>
  </ul>
  
  <p>Browser cache is not a problem, API limits are fine.</p>
  
  <p>I wasted for it 9 hours and I dont know what is wrong:)
  If you have any ideas - please share with me.</p>