svn: /phpdoc/en/trunk/reference/phar/Phar/ construct.xml
| From: | Joey Smith | Date: | Sun, 01 Apr 2012 09:08:01 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/phar/Phar/ construct.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9986@lists.php.net to get a copy of this message | ||
joey Sun, 01 Apr 2012 09:08:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=324674
Log:
Fix the FilesystemIterator constants in the Phar constructor example.
Changed paths:
U phpdoc/en/trunk/reference/phar/Phar/construct.xml
Modified: phpdoc/en/trunk/reference/phar/Phar/construct.xml
===================================================================
--- phpdoc/en/trunk/reference/phar/Phar/construct.xml 2012-04-01 08:51:22 UTC (rev 324673)
+++ phpdoc/en/trunk/reference/phar/Phar/construct.xml 2012-04-01 09:08:01 UTC (rev 324674)
@@ -67,7 +67,7 @@
<![CDATA[
<?php
try {
- $p = new Phar('/path/to/my.phar', CURRENT_AS_FILEINFO | KEY_AS_FILENAME,
+ $p = new Phar('/path/to/my.phar', FilesystemIterator::CURRENT_AS_FILEINFO |
FilesystemIterator::KEY_AS_FILENAME,
'my.phar');
} catch (UnexpectedValueException $e) {
die('Could not open my.phar');