title: Blank page if I declare(strict_types=1); in PHP 7 at top of the file
body: <p>Recently I was checking out on PHP 7, specifically <a href="https://wiki.php.net/rfc/return_types" rel="noreferrer">return type declaration</a> and <a href="https://wiki.php.net/rfc/scalar_type_hints_v5" rel="noreferrer">type hinting</a>. I have compiled PHP 7 from source(master branch from <a href="https://github.com/php/php-src" rel="noreferrer">Github</a>) and running it in Ubuntu 14.04 virtual box. I tried to run following code to get a test of new <a href="https://wiki.php.net/rfc/engine_exceptions_for_php7" rel="noreferrer">Exceptions</a>. But it Gave a blank page.</p>
  
  <pre><code>&lt;?php
  
  function test(): string {
  
      return [];
  }
  
  echo test();
  </code></pre>
  
  <p>Then I realize I have to set error to be displayed on screen. So I added old fashioned <code>ini_set('display_errors', 1);</code> like below,</p>
  
  <pre><code>&lt;?php
  ini_set('display_errors', 1);
  
  function test(): string {
  
      return [];
  }
  
  echo test();
  </code></pre>
  
  <p>that gave me following <code>TypeError</code> as expected according to this <a href="https://wiki.php.net/rfc/throwable-interface" rel="noreferrer">Throwable interface</a> RFC</p>
  
  <blockquote>
    <p>Fatal error: Uncaught TypeError: Return value of test() must be of the
    type string, array returned in /usr/share/nginx/html/test.php on line
    7 in /usr/share/nginx/html/test.php:7 Stack trace: #0
    /usr/share/nginx/html/test.php(10): test() #1 {main} thrown in
    /usr/share/nginx/html/test.php on line 7</p>
  </blockquote>
  
  <p>Digging further I added <code>declare(strict_types=1);</code> at the top as below, </p>
  
  <pre><code>&lt;?php declare(strict_types=1);
  
  ini_set('display_errors', 1);
  
  function test(): string {
  
      return [];
  }
  
  echo test();
  </code></pre>
  
  <p>and bang, error just got disappeared leaving me with blank page. I cant figure out why it is giving me a blank page?</p>