title: FFI API is restricted
body: <p>I want to test PHP 7.4 FFI functionality. I have PHP 7.4beta4 installed on Ubuntu 16/Apache 2.4</p>
  
  <p>FFI is enabled in my php.ini with:</p>
  
  <pre><code>ffi.enable = true
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/CrtH6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CrtH6.png" alt="enter image description here"></a></p>
  
  <p>Here is my php file:</p>
  
  <pre><code>&lt;?php
  
  error_reporting(E_ALL);
  ini_set('display_errors', '1');
  
  $ffi = \FFI::cdef(
      "int printf(const char *format, ...);", // this is a regular C declaration
      "libc.so.6");
  // call C's printf()
  $ffi-&gt;printf("Hello %s!\n", "world");
  </code></pre>
  
  <p>But I get this error anyway:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught FFI\Exception: FFI API is restricted by "ffi.enable" configuration directive in /var/www/html/plain.local/index.php:8 Stack trace: #0 /var/www/html/plain.local/index.php(8): FFI::cdef() #1 {main} thrown in /var/www/html/plain.local/index.php on line 8</p>
  </blockquote>
  
  <p>What did I forget?</p>