title: How to solve the SimpleXMLElement error?
body: <p>I have a very strange error, and cant fix it. Tried to install APC, PEAR but same error continue. How to solve this any idea?</p>
  
  <pre><code>[error] [client 127.0.0.1] PHP Warning: SimpleXMLElement::__construct(): Entity: line 9: parser error : Comment not terminated in /var/www/html/my/application/search/models/Search/Adapter/Web/YahooBoss.php on line 39
  
  &lt;?php
  
  class Search_Adapter_Web_YahooBoss extends Search_Adapter_Abstract implements Search_Adapter_Localized_Interface {
  
      private $_applicationId;
      private $_locale;
      private $_defaultLocale = 'en_US';
  
      function __construct($applicationId) {
          $this-&gt;_applicationId = $applicationId;
      }
  
      /**
       * @param $searchString string
       * @param $offset integer
       * @param $count integer
       * @return Search_ResultList
       */
      public function search($searchString, $offset, $count) {
          $rest = new Zend_Rest_Client ( 'http://boss.yahooapis.com' );
  
              ///Zend_Debug::dump($rest);exit;
  
          //Set the locale for internal use
          $locale = $this-&gt;getWorkingLocale();
          $options = array ('region' =&gt; $locale-&gt;getRegion (), 'lang' =&gt; $locale-&gt;getLanguage (), 'start' =&gt; $offset, 'count' =&gt; $count,'type'=&gt;'html', 'format' =&gt; 'xml', 'appid' =&gt; $this-&gt;_applicationId );
  
          // &lt; and &gt; characters cause errors
          $searchString = str_replace(array('&lt;','&gt;'),'',$searchString);
  
          $restUrl = '/ysearch/web/v1/' . rawurlencode ( $searchString );
          $response = $rest-&gt;restGet ($restUrl , $options);
  
          if ($response-&gt;isError ()) {
              require_once 'Zend/Service/Exception.php';
              throw new Zend_Service_Exception ( 'An error occurred sending request. Status code: ' . $response-&gt;getStatus () );
          }
  
          $body = $response-&gt;getBody ();
          //libxml_use_internal_errors(true);
          $sxe = new SimpleXMLElement ( $body );
  
  
  
  
  # php -r 'phpinfo();' |grep apc
  Additional .ini files parsed =&gt; /etc/php.d/apc.ini,
  apc
  MMAP File Mask =&gt; /tmp/apc.XXXXXX
  apc.cache_by_default =&gt; On =&gt; On
  apc.canonicalize =&gt; Off =&gt; Off
  apc.coredump_unmap =&gt; Off =&gt; Off
  apc.enable_cli =&gt; Off =&gt; Off
  apc.enabled =&gt; On =&gt; On
  apc.file_md5 =&gt; Off =&gt; Off
  apc.file_update_protection =&gt; 2 =&gt; 2
  apc.filters =&gt; no value =&gt; no value
  apc.gc_ttl =&gt; 3600 =&gt; 3600
  apc.include_once_override =&gt; Off =&gt; Off
  apc.lazy_classes =&gt; Off =&gt; Off
  apc.lazy_functions =&gt; Off =&gt; Off
  apc.max_file_size =&gt; 1M =&gt; 1M
  apc.mmap_file_mask =&gt; /tmp/apc.XXXXXX =&gt; /tmp/apc.XXXXXX
  apc.num_files_hint =&gt; 1024 =&gt; 1024
  apc.preload_path =&gt; no value =&gt; no value
  apc.report_autofilter =&gt; Off =&gt; Off
  apc.rfc1867 =&gt; Off =&gt; Off
  apc.rfc1867_freq =&gt; 0 =&gt; 0
  apc.rfc1867_name =&gt; APC_UPLOAD_PROGRESS =&gt; APC_UPLOAD_PROGRESS
  apc.rfc1867_prefix =&gt; upload_ =&gt; upload_
  apc.rfc1867_ttl =&gt; 3600 =&gt; 3600
  apc.serializer =&gt; default =&gt; default
  apc.shm_segments =&gt; 1 =&gt; 1
  apc.shm_size =&gt; 64M =&gt; 64M
  apc.slam_defense =&gt; On =&gt; On
  apc.stat =&gt; On =&gt; On
  apc.stat_ctime =&gt; Off =&gt; Off
  apc.ttl =&gt; 7200 =&gt; 7200
  apc.use_request_time =&gt; On =&gt; On
  apc.user_entries_hint =&gt; 4096 =&gt; 4096
  apc.user_ttl =&gt; 7200 =&gt; 7200
  apc.write_lock =&gt; On =&gt; On
  </code></pre>