bug68104.phpt 379 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #68104 (Segfault while pre-evaluating a disabled function)
  3. --CREDITS--
  4. manuel <manuel@mausz.at>
  5. --INI--
  6. opcache.enable=1
  7. opcache.enable_cli=1
  8. disable_functions=dl
  9. --EXTENSIONS--
  10. opcache
  11. --FILE--
  12. <?php
  13. var_dump(is_callable("dl"));
  14. try {
  15. dl("a.so");
  16. } catch (Error $e) {
  17. echo $e->getMessage(), "\n";
  18. }
  19. ?>
  20. --EXPECT--
  21. bool(false)
  22. Call to undefined function dl()