title: Class SimpleXMLIterator not found in zend framework 1 when zf create project ZendApp with PHP7
body: <p>I downloaded this zend framework <code>zf 1.12.20</code> from their <a href="https://framework.zend.com/downloads/archives" rel="nofollow">official site</a></p>
  
  <p>Unzipped it and added the path to library in php.ini and aliased bin/zf.sh in .bashrc as per <a href="https://www.digitalocean.com/community/tutorials/how-to-install-zend-framework-on-an-ubuntu-12-04-vps" rel="nofollow">this tutorial</a></p>
  
  <p>Now when I do <code>zf create project ZendApp</code>, I get the following error:</p>
  
  <pre><code>nidhind@nidhind-Lenovo-B590 ~ $ zf create project zendapp
  PHP Fatal error:  Uncaught Error: Class 'SimpleXMLIterator' not found in /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Project/Profile/FileParser/Xml.php:109
  Stack trace:
  #0 /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Project/Profile.php(106): Zend_Tool_Project_Profile_FileParser_Xml-&gt;unserialize('&lt;?xml version="...', Object(Zend_Tool_Project_Profile))
  #1 /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Project/Provider/Project.php(91): Zend_Tool_Project_Profile-&gt;loadFromData()
  #2 /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Framework/Client/Abstract.php(324): Zend_Tool_Project_Provider_Project-&gt;create('/home/nidhind/z...', NULL, NULL)
  #3 /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Framework/Client/Abstract.php(318): Zend_Tool_Framework_Client_Abstract-&gt;_handleDispatchExecution(Object(Zend_Tool_Project_Provider_Project), 'create', Array)
  #4 /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Framework/Client/Abstract.php(241): Zend_Tool_Framework_Client_Abstract-&gt;_handleDispatch()
  #5 /usr/share/ZendFr in /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Project/Profile/FileParser/Xml.php on line 109
  
  Fatal error: Uncaught Error: Class 'SimpleXMLIterator' not found in /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Project/Profile/FileParser/Xml.php:109
  Stack trace:
  #0 /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Project/Profile.php(106): Zend_Tool_Project_Profile_FileParser_Xml-&gt;unserialize('&lt;?xml version="...', Object(Zend_Tool_Project_Profile))
  #1 /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Project/Provider/Project.php(91): Zend_Tool_Project_Profile-&gt;loadFromData()
  #2 /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Framework/Client/Abstract.php(324): Zend_Tool_Project_Provider_Project-&gt;create('/home/nidhind/z...', NULL, NULL)
  #3 /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Framework/Client/Abstract.php(318): Zend_Tool_Framework_Client_Abstract-&gt;_handleDispatchExecution(Object(Zend_Tool_Project_Provider_Project), 'create', Array)
  #4 /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Framework/Client/Abstract.php(241): Zend_Tool_Framework_Client_Abstract-&gt;_handleDispatch()
  #5 /usr/share/ZendFr in /usr/share/ZendFramework-1.12.20/library/Zend/Tool/Project/Profile/FileParser/Xml.php on line 109
  </code></pre>
  
  <p>I tired by relocating the framework to my home folder but the error didn't resolve. I tried using <code>zf 1.12.19</code>, still no luck.</p>
  
  <p><strong>Then to verify if zf is not seen by php I executed the following code from this site and it worked perfectly:</strong></p>
  
  <pre><code>&lt;?php
  require_once 'Zend/Pdf.php';
  
  /* create a new pdf document */
  $pdf = new Zend_Pdf();
  
  /* create a page */
  $page = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_LETTER_LANDSCAPE);
  
  /* setup font */
  $font = Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA);
  
  /* write text to page */
  $page-&gt;setFont($font, 48);
  $page-&gt;drawText('Hello, World!', 250, 500);
  
  /* add page to document */
  $pdf-&gt;pages[] = $page;
  
  /* save pdf */
  $pdf-&gt;save('/home/nidhind/Public/hello.pdf');
  ?&gt;
  </code></pre>
  
  <p>It seems like the <strong>zf.sh</strong> file is causing this error. It would be great if any one could help. I 'am running <code>apache2 2.4.18</code> and <code>PHP 7.0.8</code> on <code>Linux Mint 18</code>. I know zf1 is outdated but I need it now.</p>