reference/phar/using.xml
e9f972da6918eabb189ba377822a1d6ad982c96d
...
...
@@ -88,7 +88,7 @@ try {
88
88
// until stopBuffering() is called, although temporary storage is needed
89
89
$p->startBuffering();
90
90
// add all files in /path/to/project, saving in the phar with the prefix "project"
91
-
$p->buildFromIterator(new RecursiveIteratorIterator(new DirectoryIterator('/path/to/project')), '/path/to/');
91
+
$p->buildFromIterator(new RecursiveIteratorIterator(new RecursiveDirectoryIterator('/path/to/project')), '/path/to/');
92
92

93
93
// add a new file via the array access API
94
94
$p['file1.txt'] = 'Information';
...
...
@@ -120,7 +120,7 @@ try {
120
120
<para>
121
121
In addition, verification of phar file contents can be done using any of the
122
122
supported symmetric hash algorithms (MD5, SHA1, SHA256 and SHA512 if ext/hash is enabled)
123
-
and using asymmetric public/private key signing using OpenSSL (new in Phar 2.0.0). To
123
+
and using asymmetric public/private key signing using OpenSSL. To
124
124
take advantage of OpenSSL signing, you need to generate a public/private key pair, and
125
125
use the private key to set the signature using
126
126
<function>Phar::setSignatureAlgorithm</function>. In addition, the public key
...
...
@@ -140,7 +140,7 @@ openssl_pkey_export($public, $pkey);
140
140
the OpenSSL signature.
141
141
</para>
142
142
<para>
143
-
As of version 2.0.0, The <classname>Phar</classname> class also provides 3 static methods, <function>Phar::webPhar</function>,
143
+
The <classname>Phar</classname> class also provides 3 static methods, <function>Phar::webPhar</function>,
144
144
<function>Phar::mungServer</function> and <function>Phar::interceptFileFuncs</function> that are crucial
145
145
to packaging up PHP applications designed for usage on regular filesystems and for web-based applications.
146
146
<function>Phar::webPhar</function> implements a front controller that routes HTTP calls to the correct
...
...
@@ -208,7 +208,7 @@ $a->stopBuffering();
208
208
The Phar stream wrapper fully supports <function>fopen</function> for
209
209
read and write (not append), <function>unlink</function>, <function>stat</function>,
210
210
<function>fstat</function>, <function>fseek</function>, <function>rename</function>
211
-
and directory stream operations <function>opendir</function> and as of version 2.0.0, <function>rmdir</function>
211
+
and directory stream operations <function>opendir</function> and <function>rmdir</function>
212
212
and <function>mkdir</function>.
213
213
</para>
214
214
<para>
215
215