cvs: peardoc /en/chapters faq.xml

From: Date: Fri, 17 Jun 2005 14:02:55 +0000
Subject: cvs: peardoc /en/chapters faq.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6364@lists.php.net to get a copy of this message
mj Fri Jun 17 10:02:55 2005 EDT Modified files: /peardoc/en/chapters faq.xml Log: * Made the FAQ more consistent * Rewrote the answer about submitting C extensions. http://cvs.php.net/diff.php/peardoc/en/chapters/faq.xml?r1=1.18&r2=1.19&ty=u Index: peardoc/en/chapters/faq.xml diff -u peardoc/en/chapters/faq.xml:1.18 peardoc/en/chapters/faq.xml:1.19 --- peardoc/en/chapters/faq.xml:1.18 Fri Jun 17 09:58:36 2005 +++ peardoc/en/chapters/faq.xml Fri Jun 17 10:02:55 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.18 $ --> +<!-- $Revision: 1.19 $ --> <!-- [mj] The FAQ needs some heavy revision - don't translate it right now --> <chapter id="faq"> @@ -74,85 +74,11 @@ <titleabbrev> C-Modules </titleabbrev> - <simpara> - Answer written by Stig Bakken and Martin Jansen. - </simpara> <para> - If you just want to make a simple extension that does not follow - the <link linkend="standards">PEAR coding standards</link>, put it - in pear/PECL/ extname (that is where extensions from - php-src/ext/extname will be moved). If you want to write an extension - following PEAR's function/class naming, put it in pear/Foo_Bar or - whatever the right name is. - </para> - </sect1> - <!-- - <sect1 id="faq.install-pecl"> - <title> - How do I install a PECL module written in C? - </title> - <titleabbrev> - Installing PECL modules - </titleabbrev> - <simpara> - Answer written by Christian Stocker. - </simpara> - - <simpara> - The support for C-extensions in PEAR/PECL is not very - sophisticated at the moment. Here's a short description of how to - get C-modules running on your system until the PEAR::Installer - does that for you. - </simpara> - <simpara> - Download the package from PEAR, then untar it somewhere. Go into - the newly built directory and do the following steps: - </simpara> - <para> - <itemizedlist> - <listitem> - <simpara> - phpize - </simpara> - </listitem> - <listitem> - <simpara> - ./configure - </simpara> - </listitem> - <listitem> - <simpara> - make - </simpara> - </listitem> - <listitem> - <simpara> - cp modules/module.so /usr/local/lib/php - </simpara> - </listitem> - </itemizedlist> + The <ulink url="&url.pecl;">PECL project</ulink> (a spin-off from + PEAR) is the place where C extensions for PHP are published. </para> - <simpara> - The path, where the module.so is expected, can be different on - your system (check <filename>php.ini</filename> and - <function>phpinfo</function>). To actually use the - module, you have to add it to the extension directive in - <filename>php.ini</filename> - or to load it with dl("module.so") within your PHP files. - </simpara> - <simpara> - You can compile this extension directly into your PHP binary, too. - For this you have to extract the package into - <filename>php-src/ext</filename> (in your source directory). After - that do also phpize in this new - module-directory. But before you can configure your main - php-exectuable, you have to do a <filename>./buildconf</filename> - on the toplevel of - the php-sources. Now you can configure/compile your PHP executable - with the new extension, as you would with all other extensions. - </simpara> - </sect1> ---> + </sect1> <sect1 id="faq.separated"> <title> Why is PEAR seperated into pear/ and pear-core/? @@ -181,9 +107,6 @@ <titleabbrev> Why do pear/ and pear-core/ differ? </titleabbrev> - <simpara> - Answer written by Stig Bakken. - </simpara> <para> The directory structure of <filename>pear-core/</filename> matches that of the install tree (by default @@ -203,9 +126,6 @@ Flat structure </titleabbrev> <simpara> - Answer written by Stig Bakken. - </simpara> - <simpara> In CVS, PEAR code is organized by package instead of hierarchical like it would finally be installed. For example, if you want to use the XML_RPC class, you include "XML/RPC.php". It's easy to @@ -421,9 +341,6 @@ <titleabbrev> Allowed licenses </titleabbrev> - <simpara> - Answer written by Jan Lehnardt, Tomas V.V. Cox and Rasmus Lerdorf. - </simpara> <para> Currently PEAR supports the following list of licenses: </para> @@ -476,9 +393,6 @@ <titleabbrev> Tabs vs. Spaces </titleabbrev> - <simpara> - Answer written by Stig Bakken. - </simpara> <para> Using spaces and avoiding tabs is the only way to ensure that a piece of code is rendered consistently in all editors and viewers.

« previous php.pear.doc (#6364) next »