cvs: phpdoc /en/reference/phar using.xml
| From: | Felipe Pena | Date: | Thu, 27 Dec 2007 01:56:45 +0000 |
| Subject: | cvs: phpdoc /en/reference/phar using.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-863@lists.php.net to get a copy of this message | ||
felipe Thu Dec 27 01:56:45 2007 UTC
Modified files:
/phpdoc/en/reference/phar using.xml
Log:
Fix example (begin and commit methods were renamed to startBuffering and stopBuffering)
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/using.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/reference/phar/using.xml
diff -u phpdoc/en/reference/phar/using.xml:1.6 phpdoc/en/reference/phar/using.xml:1.7
--- phpdoc/en/reference/phar/using.xml:1.6 Sat Dec 22 00:03:28 2007
+++ phpdoc/en/reference/phar/using.xml Thu Dec 27 01:56:45 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<chapter xml:id="phar.using.basics" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Using Phar Archives</title>
@@ -84,8 +84,8 @@
if (Phar::canWrite()) {
$p = new Phar(dirname(__FILE__) . '/newphar.phar', 0, 'newphar.phar');
// create transaction - nothing is written to newphar.phar
- // until commit() is called, although temporary storage is needed
- $p->begin();
+ // until stopBuffering() is called, although temporary storage is needed
+ $p->startBuffering();
// add a new file, set its contents
$p['file1.txt'] = 'Information';
$fp = fopen('hugefile.dat', 'rb');
@@ -106,7 +106,7 @@
require "phar://" . __FILE__ . "/" . $m["bootstrap"];
__HALT_COMPILER();');
// save the phar archive to disk
- $p->commit();
+ $p->stopBuffering();
}
} catch (Exception $e) {
echo 'Could not open Phar: ', $e;