fix doc example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228281 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Greg Beaver 2007-01-28 05:36:47 +00:00
parent 7dc7b75cb8
commit d60ca4547e

View file

@ -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-&gt;commitWrite</refname>
@ -52,9 +52,9 @@ $p['file1.txt'] = 'hi';
$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';