title: Yii2 - fatal error , try-catch not working
body: <p>i want working with SoapClient in yii2 project. but i need manage error with try-catch. but that not work !</p>
  
  <p>yii2 code example :</p>
  
  <pre><code>class SiteController extends Controller
  {
      public function actionIndex()
      {
          try{
              new \SoapClient('a',['cache_wsdl' =&gt;  WSDL_CACHE_MEMORY]);
          }catch(\SoapFault $e){
              echo '***************';
          }
      }
  }
  </code></pre>
  
  <p>yii framework output :</p>
  
  <blockquote>
    <p>PHP Fatal Error – yii\base\ErrorException SOAP-ERROR: Parsing WSDL:
    Couldn't load from 'a' : failed to load external entity "a"</p>
  </blockquote>
  
  <p>but in test.php(no yii framework) :</p>
  
  <pre><code>try{
      new SoapClient('a',['cache_wsdl' =&gt;  WSDL_CACHE_MEMORY]);
  }catch(SoapFault $e){
      echo '***************';
  }
  </code></pre>
  
  <p>output</p>
  
  <pre><code>***************
  </code></pre>
  
  <p>why catch SoapFault not working ? <strong>but in single php script works and printed stars.</strong></p>