fseek($lob->stream, 0, SEEK_SET);
$dat = fread($lob->stream, filesize(__FILE__));
-var_dump(hash("md5", $dat)==hash_file("md5", __FILE__));
+var_dump(md5($dat)===md5_file(__FILE__));
ftruncate($lob->stream, 5);
DONE
--EXPECTF--
Test
-int(503)
+int(488)
bool(true)
Warning: ftruncate(): Can't truncate this stream! in %s on line %d
-string(123) "<?php
+string(123) "%c?php
echo "Test\n";
include "_setup.inc";