bug76796.phpt 389 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #76796: Compile-time evaluation of disabled function in opcache (SCCP) causes segfault
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. disable_functions=strpos
  8. --EXTENSIONS--
  9. opcache
  10. --FILE--
  11. <?php
  12. try {
  13. var_dump(strpos('foo', 'bar'));
  14. } catch (Error $e) {
  15. echo $e->getMessage(), "\n";
  16. }
  17. ?>
  18. --EXPECT--
  19. Call to undefined function strpos()