zip_entry_open.phpt 599 B

1234567891011121314151617181920212223
  1. --TEST--
  2. zip_entry_open() function
  3. --EXTENSIONS--
  4. zip
  5. --FILE--
  6. <?php
  7. $zip = zip_open(__DIR__."/test_procedural.zip");
  8. $entry = zip_read($zip);
  9. echo zip_entry_open($zip, $entry, "r") ? "OK" : "Failure";
  10. zip_entry_close($entry);
  11. zip_close($zip);
  12. ?>
  13. --EXPECTF--
  14. Deprecated: Function zip_open() is deprecated in %s on line %d
  15. Deprecated: Function zip_read() is deprecated in %s on line %d
  16. Deprecated: Function zip_entry_open() is deprecated in %s on line %d
  17. OK
  18. Deprecated: Function zip_entry_close() is deprecated in %s on line %d
  19. Deprecated: Function zip_close() is deprecated in %s on line %d