diff --git a/reference/phar/Phar/createDefaultStub.xml b/reference/phar/Phar/createDefaultStub.xml index d2c71d8bc1..009de4720b 100644 --- a/reference/phar/Phar/createDefaultStub.xml +++ b/reference/phar/Phar/createDefaultStub.xml @@ -1,5 +1,5 @@ - + Phar::createDefaultStub @@ -71,12 +71,14 @@ php myphar.phar A <function>Phar::createDefaultStub</function> example setStub($phar->createDefaultStub('cli.php', 'web/index.php')); } catch (Exception $e) { // handle errors } +?> ]]> diff --git a/reference/phar/Phar/getStub.xml b/reference/phar/Phar/getStub.xml index 836216e52c..f2ad8220c1 100644 --- a/reference/phar/Phar/getStub.xml +++ b/reference/phar/Phar/getStub.xml @@ -1,5 +1,5 @@ - + Phar::getStub @@ -55,6 +55,7 @@ php myphar.phar A <function>Phar::getStub</function> example getStub(); echo "==NEXT==\n"; @@ -67,6 +68,7 @@ Phar::mapPhar('myphar.phar'); include 'phar://myphar.phar/startup.php'; __HALT_COMPILER(); ?>"); echo $p->getStub(); +?> ]]> &example.outputs; diff --git a/reference/phar/Phar/setSignatureAlgorithm.xml b/reference/phar/Phar/setSignatureAlgorithm.xml index 3e85829ddc..5aa5c9ee8e 100644 --- a/reference/phar/Phar/setSignatureAlgorithm.xml +++ b/reference/phar/Phar/setSignatureAlgorithm.xml @@ -1,5 +1,5 @@ - + Phar::setSignatureAlgorithm @@ -52,10 +52,12 @@ OpenSSL key file: setSignatureAlgorithm(Phar::OPENSSL, $pkey); +?> ]]> See phar introduction for instructions on diff --git a/reference/phar/Phar/webPhar.xml b/reference/phar/Phar/webPhar.xml index a1b48d991f..74541830d1 100644 --- a/reference/phar/Phar/webPhar.xml +++ b/reference/phar/Phar/webPhar.xml @@ -1,5 +1,5 @@ - + Phar::webPhar @@ -72,6 +72,7 @@ these extensions are mapped to these mime types: 2, // pass to highlight_file() 'c' => 'text/plain', @@ -114,6 +115,7 @@ $mimes = array( 'xbm' => 'image/xbm', 'xml' => 'text/xml', ); +?> ]]> @@ -127,9 +129,11 @@ $mimes = array( For example: 'myinfo.php' ); +?> ]]> would route calls to http://<host>/myphar.phar/myinfo diff --git a/reference/phar/ini.xml b/reference/phar/ini.xml index f7f9378a6c..348d3bb34c 100644 --- a/reference/phar/ini.xml +++ b/reference/phar/ini.xml @@ -1,5 +1,5 @@ - +
&reftitle.runtime; &extension.runtime; @@ -149,7 +149,7 @@ include "phar://arch2/foo.php"; traditional disk-based installation. phar.cache_list usage example - + - + Using Phar Archives @@ -129,9 +129,11 @@ try { as extracted using this code: ]]> must be saved adjacent to the phar archive it verifies. If the phar archive