fix filter example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293566 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Stanislav Malyshev 2010-01-15 01:58:44 +00:00
parent 9f31f3dd48
commit b3518eba70

View file

@ -521,7 +521,7 @@ $key = substr(md5('pass1'.$passphrase, true) .
$opts = array('iv'=>$iv, 'key'=>$key);
$fp = fopen('secert-file.enc', 'rb');
stream_filter_append($fp, 'mdecrypt.tripledes', STREAM_FILTER_WRITE, $opts);
stream_filter_append($fp, 'mdecrypt.tripledes', STREAM_FILTER_READ, $opts);
$data = rtrim(stream_get_contents($fp));
fclose($fp);