mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
9f31f3dd48
commit
b3518eba70
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue