007.phpt 382 B

12345678910111213141516171819202122
  1. --TEST--
  2. INI functions test
  3. --FILE--
  4. <?php
  5. $ini1 = ini_get('include_path');
  6. ini_set('include_path','ini_set_works');
  7. echo ini_get('include_path')."\n";
  8. ini_restore('include_path');
  9. $ini2 = ini_get('include_path');
  10. if ($ini1 !== $ini2) {
  11. echo "ini_restore() does not work.\n";
  12. }
  13. else {
  14. echo "ini_restore_works\n";
  15. }
  16. ?>
  17. --EXPECT--
  18. ini_set_works
  19. ini_restore_works