bug65559.phpt 437 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #65559 (cache not cleared if changes occur while running)
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.file_update_protection=2
  7. --EXTENSIONS--
  8. opcache
  9. --FILE--
  10. <?php
  11. $file = __DIR__ . "/bug6559.inc.php";
  12. file_put_contents($file, '<?php return 1;');
  13. $var = include $file;
  14. var_dump($var);
  15. file_put_contents($file, '<?php return 2;');
  16. $var = include $file;
  17. var_dump($var);
  18. @unlink($file);
  19. ?>
  20. --EXPECT--
  21. int(1)
  22. int(2)