cellog Sun Jan 28 05:36:47 2007 UTC
Modified files:
/phpdoc/en/reference/phar/functions Phar-commitWrite.xml
Log:
fix doc example
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-commitWrite.xml?r1=1.1&r2=1.2&diff_format=u
Index: phpdoc/en/reference/phar/functions/Phar-commitWrite.xml
diff -u phpdoc/en/reference/phar/functions/Phar-commitWrite.xml:1.1
phpdoc/en/reference/phar/functions/Phar-commitWrite.xml:1.2
--- phpdoc/en/reference/phar/functions/Phar-commitWrite.xml:1.1 Sun Jan 28
05:31:52 2007
+++ phpdoc/en/reference/phar/functions/Phar-commitWrite.xml Sun Jan 28
05:36:47 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="function.Phar-commitWrite">
<refnamediv>
<refname>Phar->commitWrite</refname>
@@ -52,9 +52,9 @@
$p->commitWrite();
var_dump($p->getStub());
$p->commitWrite("<?php
-function __autoload($class)
+function __autoload(\$class)
{
- include 'phar://' . str_replace('_', '/', $class);
+ include 'phar://' . str_replace('_', '/', \$class);
}
Phar::mapPhar('brandnewphar.phar');
include 'phar://brandnewphar.phar/startup.php';