From b3518eba7047731769f82814a59140da502e5071 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Fri, 15 Jan 2010 01:58:44 +0000 Subject: [PATCH] fix filter example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293566 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/filters.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appendices/filters.xml b/appendices/filters.xml index 1d11236e21..a95f442d92 100644 --- a/appendices/filters.xml +++ b/appendices/filters.xml @@ -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);