cvs: phpdoc /en/reference/phar ini.xml using.xml /en/reference/phar/Phar createDefaultStub.xml getStub.xml setSignatureAlgorithm.xml webPhar.xml
| From: | Jakub Vrana | Date: | Thu, 16 Apr 2009 15:15:33 +0000 |
| Subject: | cvs: phpdoc /en/reference/phar ini.xml using.xml /en/reference/phar/Phar createDefaultStub.xml getStub.xml setSignatureAlgorithm.xml webPhar.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3746@lists.php.net to get a copy of this message | ||
vrana Thu Apr 16 15:15:33 2009 UTC
Modified files:
/phpdoc/en/reference/phar ini.xml using.xml
/phpdoc/en/reference/phar/Phar createDefaultStub.xml getStub.xml
setSignatureAlgorithm.xml
webPhar.xml
Log:
Add missing PHP tags
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/ini.xml?r1=1.10&r2=1.11&diff_format=u
Index: phpdoc/en/reference/phar/ini.xml
diff -u phpdoc/en/reference/phar/ini.xml:1.10 phpdoc/en/reference/phar/ini.xml:1.11
--- phpdoc/en/reference/phar/ini.xml:1.10 Fri Jan 9 17:33:39 2009
+++ phpdoc/en/reference/phar/ini.xml Thu Apr 16 15:15:33 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
<section xml:id="phar.configuration" xmlns="http://docbook.org/ns/docbook">
&reftitle.runtime;
&extension.runtime;
@@ -149,7 +149,7 @@
traditional disk-based installation.
<example>
<title>phar.cache_list usage example</title>
- <programlisting role="php">
+ <programlisting>
<![CDATA[
in php.ini (windows):
phar.cache_list =C:\path\to\phar1.phar;C:\path\to\phar2.phar
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/using.xml?r1=1.15&r2=1.16&diff_format=u
Index: phpdoc/en/reference/phar/using.xml
diff -u phpdoc/en/reference/phar/using.xml:1.15 phpdoc/en/reference/phar/using.xml:1.16
--- phpdoc/en/reference/phar/using.xml:1.15 Tue Jan 13 11:29:56 2009
+++ phpdoc/en/reference/phar/using.xml Thu Apr 16 15:15:33 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.15 $ -->
+<!-- $Revision: 1.16 $ -->
<chapter xml:id="phar.using" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Using Phar Archives</title>
@@ -129,9 +129,11 @@
as extracted using this code:
<programlisting role="php">
<![CDATA[
+<?php
$public = openssl_get_publickey(file_get_contents('private.pem'));
$pkey = '';
openssl_pkey_export($public, $pkey);
+?>
]]>
</programlisting>
must be saved adjacent to the phar archive it verifies. If the phar archive
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/Phar/createDefaultStub.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/en/reference/phar/Phar/createDefaultStub.xml
diff -u phpdoc/en/reference/phar/Phar/createDefaultStub.xml:1.4
phpdoc/en/reference/phar/Phar/createDefaultStub.xml:1.5
--- phpdoc/en/reference/phar/Phar/createDefaultStub.xml:1.4 Thu Mar 26 18:18:48 2009
+++ phpdoc/en/reference/phar/Phar/createDefaultStub.xml Thu Apr 16 15:15:33 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="phar.createdefaultstub">
<refnamediv>
<refname>Phar::createDefaultStub</refname>
@@ -71,12 +71,14 @@
<title>A <function>Phar::createDefaultStub</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
try {
$phar = new Phar('myphar.phar');
$phar->setStub($phar->createDefaultStub('cli.php', 'web/index.php'));
} catch (Exception $e) {
// handle errors
}
+?>
]]>
</programlisting>
</example>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/Phar/getStub.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc/en/reference/phar/Phar/getStub.xml
diff -u phpdoc/en/reference/phar/Phar/getStub.xml:1.2 phpdoc/en/reference/phar/Phar/getStub.xml:1.3
--- phpdoc/en/reference/phar/Phar/getStub.xml:1.2 Mon Jan 21 21:54:18 2008
+++ phpdoc/en/reference/phar/Phar/getStub.xml Thu Apr 16 15:15:33 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="phar.getstub">
<refnamediv>
<refname>Phar::getStub</refname>
@@ -55,6 +55,7 @@
<title>A <function>Phar::getStub</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$p = new Phar('/path/to/my.phar', 0, 'my.phar');
echo $p->getStub();
echo "==NEXT==\n";
@@ -67,6 +68,7 @@
include 'phar://myphar.phar/startup.php';
__HALT_COMPILER(); ?>");
echo $p->getStub();
+?>
]]>
</programlisting>
&example.outputs;
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/Phar/setSignatureAlgorithm.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/phar/Phar/setSignatureAlgorithm.xml
diff -u phpdoc/en/reference/phar/Phar/setSignatureAlgorithm.xml:1.5
phpdoc/en/reference/phar/Phar/setSignatureAlgorithm.xml:1.6
--- phpdoc/en/reference/phar/Phar/setSignatureAlgorithm.xml:1.5 Sun Mar 22 21:51:02 2009
+++ phpdoc/en/reference/phar/Phar/setSignatureAlgorithm.xml Thu Apr 16 15:15:33 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<refentry xml:id="phar.setsignaturealgorithm" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Phar::setSignatureAlgorithm</refname>
@@ -52,10 +52,12 @@
OpenSSL key file:
<programlisting role="php">
<![CDATA[
+<?php
$private = openssl_get_privatekey(file_get_contents('private.pem'));
$pkey = '';
openssl_pkey_export($private, $pkey);
$p->setSignatureAlgorithm(Phar::OPENSSL, $pkey);
+?>
]]>
</programlisting>
See <link linkend="phar.using">phar introduction</link> for
instructions on
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/Phar/webPhar.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/reference/phar/Phar/webPhar.xml
diff -u phpdoc/en/reference/phar/Phar/webPhar.xml:1.6 phpdoc/en/reference/phar/Phar/webPhar.xml:1.7
--- phpdoc/en/reference/phar/Phar/webPhar.xml:1.6 Sun Mar 22 21:51:02 2009
+++ phpdoc/en/reference/phar/Phar/webPhar.xml Thu Apr 16 15:15:33 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<refentry xml:id="phar.webphar" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Phar::webPhar</refname>
@@ -72,6 +72,7 @@
these extensions are mapped to these mime types:
<programlisting role="php">
<![CDATA[
+<?php
$mimes = array(
'phps' => 2, // pass to highlight_file()
'c' => 'text/plain',
@@ -114,6 +115,7 @@
'xbm' => 'image/xbm',
'xml' => 'text/xml',
);
+?>
]]>
</programlisting>
</para>
@@ -127,9 +129,11 @@
For example:
<programlisting role="php">
<![CDATA[
+<?php
array(
'myinfo' => 'myinfo.php'
);
+?>
]]>
</programlisting>
would route calls to <literal>http://<host>/myphar.phar/myinfo</literal>