Created
August 26, 2016 16:18
-
-
Save cmb69/6a644d70b8019cf49d3dad4753b657dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$name = "/tmp/hello.txt.gz"; | |
$file = "compress.zlib://" . $name; | |
$stream = fopen($file, 'w'); | |
var_dump(flock($stream, LOCK_EX)); | |
fputs($stream, 'hello'); | |
fclose($stream); | |
var_dump(filesize($name)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment