title: PHP - strstr function problem
body: <p>Good day to all. I am using zend+smarty, but I don't think the framework has any thing to do with the problem. I have the following scenario:</p>
  
  <pre><code>     A script that gets a string from a specified site using an api. The string is retrieved corectly so I'll just assign a string to a variable:
  
       $string = 'String retrieved from api.';
       $string = strstr($string, "&lt;?xml", false);
  
       libxml_use_internal_errors(true);
       $xml = simplexml_load_string($body);
  </code></pre>
  
  <p>Sounds ok, looks ok. Now the problem.</p>
  
  <p>When I use that on our local test machine it works like a dream. No problem at all. On the other hand, on the production machine I get this:</p>
  
  <p>Warning: Wrong parameter count for strstr() in /home/prj/include/DatabaseObject/Ctrl.php on line 720 (this is the strstr line).</p>
  
  <p>I checked the strings before strstr on the 2 machines and they are identical. Also on the second server after the strstr line the string becomes empty (on the other one it is correctly transformed).</p>
  
  <p>I really don't get it... the code is the same. The string is the same. Is a bit strange to me.</p>