mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
7dc7b75cb8
commit
d60ca4547e
1 changed files with 3 additions and 3 deletions
|
@ -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['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';
|
||||
|
|
Loading…
Reference in a new issue