mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
don't encourage \" ?>\" after __HALT_COMPILER();
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228354 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
831ba60a41
commit
a7f15583a9
5 changed files with 10 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<section id="phar.fileformat">
|
||||
<title>Phar file format</title>
|
||||
<para>
|
||||
|
@ -42,7 +42,6 @@
|
|||
Phar::mapPhar();
|
||||
include 'phar://myphar.phar/index.php';
|
||||
__HALT_COMPILER();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<refentry id="function.Phar-begin">
|
||||
<refnamediv>
|
||||
<refname>Phar->begin</refname>
|
||||
|
@ -68,8 +68,7 @@ function __autoload($class)
|
|||
}
|
||||
Phar::mapPhar('myphar.phar');
|
||||
include 'phar://myphar.phar/startup.php';
|
||||
__HALT_COMPILER();
|
||||
?>");
|
||||
__HALT_COMPILER();");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<refentry id="function.Phar-commit">
|
||||
<refnamediv>
|
||||
<refname>Phar->commit</refname>
|
||||
|
@ -58,8 +58,7 @@ function __autoload(\$class)
|
|||
}
|
||||
Phar::mapPhar('brandnewphar.phar');
|
||||
include 'phar://brandnewphar.phar/startup.php';
|
||||
__HALT_COMPILER();
|
||||
?>");
|
||||
__HALT_COMPILER();");
|
||||
var_dump($p->getStub());
|
||||
?>
|
||||
]]>
|
||||
|
@ -68,15 +67,14 @@ var_dump($p->getStub());
|
|||
<screen>
|
||||
<![CDATA[
|
||||
string(24) "<?php __HALT_COMPILER();"
|
||||
string(198) "<?php
|
||||
string(195) "<?php
|
||||
function __autoload($class)
|
||||
{
|
||||
include 'phar://' . str_replace('_', '/', $class);
|
||||
}
|
||||
Phar::mapPhar('brandnewphar.phar');
|
||||
include 'phar://brandnewphar.phar/startup.php';
|
||||
__HALT_COMPILER();
|
||||
?>"
|
||||
__HALT_COMPILER();"
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<refentry id="function.Phar-getStub">
|
||||
<refnamediv>
|
||||
<refname>Phar->getStub</refname>
|
||||
|
@ -52,8 +52,7 @@ function __autoload($class)
|
|||
}
|
||||
Phar::mapPhar('myphar.phar');
|
||||
include 'phar://myphar.phar/startup.php';
|
||||
__HALT_COMPILER();
|
||||
?>");
|
||||
__HALT_COMPILER();");
|
||||
echo $p->getStub();
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -70,7 +69,6 @@ function __autoload($class)
|
|||
Phar::mapPhar('myphar.phar');
|
||||
include 'phar://myphar.phar/startup.php';
|
||||
__HALT_COMPILER();
|
||||
?>
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry id="function.Phar-mapPhar">
|
||||
<refnamediv>
|
||||
<refname>Phar::mapPhar</refname>
|
||||
|
@ -71,7 +71,6 @@ function __autoload($class)
|
|||
Phar::mapPhar('me.phar');
|
||||
include 'phar://me.phar/startup.php';
|
||||
__HALT_COMPILER();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue