Skip to content

Instantly share code, notes, and snippets.

@piscisaureus piscisaureus/out.txt
Created Nov 20, 2012

Embed
What would you like to do?
piscisaureus@test:~/334240 (master) $ cat bla
bla
piscisaureus@test:~/334240 (master) $ cat test.php
<?php
var_dump(file_get_contents("bla"));
var_dump(file_get_contents("bla\0bar"));
?>
piscisaureus@test:~/334240 (master) $ php test.php
string(4) "bla
"
string(4) "bla
"
piscisaureus@test:~/334240 (master) $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.