cvs: peardoc /ja/chapters faq.xml
| From: | Tadashi Jokagi | Date: | Fri, 17 Oct 2003 16:46:17 +0000 |
| Subject: | cvs: peardoc /ja/chapters faq.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-1660@lists.php.net to get a copy of this message | ||
elf Fri Oct 17 12:46:17 2003 EDT
Added files:
/peardoc/ja/chapters faq.xml
Log:
o add japanese document.
Index: peardoc/ja/chapters/faq.xml +++ peardoc/ja/chapters/faq.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- sync: 1.8 --> <!-- [mj] The FAQ needs some heavy revision - don't translate it right now --> <chapter id="faq"> <title>FAQ - é »åºãã質å</title> <titleabbrev>FAQ</titleabbrev> <sect1 id="faq.whatis"> <title> PEAR?ã¨ã¯? </title> <para> ããã«ã¤ãã¦ã¯<link linkend="introduction">ãã</link>ã«è¨è¿°ããã¦ãã¾ãã </para> </sect1> <sect1 id="faq.contributor"> <title> How to become a PEAR contributor and/or how to get CVS access to PEAR? </title> <titleabbrev> è²¢ç®ãã </titleabbrev> <para> ããã«ã¤ãã¦ã¯<link linkend="developers.intro">ãã</link>ã«è¨è¿°ããã¦ãã¾ãã </para> </sect1> <sect1 id="faq.c-module"> <title> ç§ã¯PHPã¢ã¸ã¥ã¼ã«ãCè¨èªã§æ¸ãã¾ãããPEARã«ãããå«ãããã®ã«ã¼ã«ã¯ ããã¾ãã? </title> <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> Cè¨èªã§ããããPELCã¢ã¸ã¥ã¼ã«ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯? </title> <titleabbrev> PECLã¢ã¸ã¥ã¼ã«ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ </titleabbrev> <simpara> Answer written by Christian Stocker. </simpara> <simpara> Cè¨èªã§æ¸ãããPEARãPECLæ¡å¼µã®ãµãã¼ãã¯ãã¾ãããã§ãã¦ãã¾ããã ããã«ããªããããªãã®ã·ã¹ãã ä¸ã§Cè¨èªã§æ¸ãããã¢ã¸ã¥ã¼ã«ã PEAR:Installerãå®è¡ããã¾ã§ã®æ¹æ³ãçãè¨è¿°ãã¦ãã¾ãã </simpara> <simpara> PEARããããã±ã¼ã¸ããã¦ã³ãã¼ãããæ¬¡ã«ãããã©ããã«å±éãã¦ãã ããã æ°ãã使ããããã£ã¬ã¯ããªã«ç§»åããæ¬¡ã®ã¹ãããã«ãã¤ãã¾ãã: </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> </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 id="faq.separated"> <title> ãªãPEARã¯pear/ã¨php-src/pear/ã«åããã¦ããã®ã§ãã? </title> <titleabbrev> ã©ããã¦pear/ã¨php-src/pearã? </titleabbrev> <simpara> ã¾ãphp-src/pearã«PEARã®ç¬¬ä¸è¦ç´ ãä¿åããã¦ãã¾ãã ããã¦ãããã¯æ°ããPHPã®ãªãªã¼ã¹ã«ãã³ãã«ããã¾ããã </simpara> <simpara> For future releases of PEAR this isn't workable because PEAR will become too big to be bundled with every release of PHP. So there was a decision to commit all new elements to an own top level directory pear. The other elements which are currently remaining in php-src/pear will be moved to the new top level directory soon. Only the <link linkend="about-pfc">PFC code</link> and the PEAR package manager code will be bundled with every new release automatically. </simpara> </sect1> <sect1 id="faq.directory-structure"> <title> ãªãpear/ã¨php-src/pear/ã§ãã£ã¬ã¯ããªæ§é ãéãã®ã§ãã? </title> <titleabbrev> ãªãpear/ã¨php-src/pearã¯éãã®ã§ãã? </titleabbrev> <simpara> Answer written by Stig Bakken. </simpara> <para> <filename>php-src/pear/</filename>ã®ãã£ã¬ã¯ããªæ§é ã¯ã ã¤ã³ã¹ãã¼ã«ããªã¼ã«é©ããæ§é ã«ãªã£ã¦ãã¾ãã (ããã©ã«ãã<filename>/usr/local/lib/php</filename>), ããã¦åç´ãªéå±¤ãæ§æãã¦ãã¾ãã ããã<filename>pear/</filename>ã®æ§é ã¯ããã±ã¼ã¸ã«å±ãã ãã¡ã¤ã«æ§æã«ãªã£ã¦ãã¾ãã Where files are located in each package directory is completely independent from where they end up being installed, this is all determined by the package description file. </para> </sect1> <sect1 id="faq.flat-structure"> <title> Why a flat directory structure instead of a deep? </title> <titleabbrev> 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 think that in CVS, this file should be in pear/XML/RPC.php, but that's not the case. XML_RPC is an independent package with its own directory in CVS, in this case the RPC.php file is actually located at pear/XML_RPC/RPC.php. The package description file (package.xml) is used to say where the files should finally be installed. </simpara> <simpara> The reason CVS is organized this way is that it makes package administration much easier. </simpara> </sect1> <sect1 id="faq.unstable-code"> <title> å®é¨çãã¾ãã¯ä¸å®å®ãªãã®ãã³ãããåºæ¥ã¾ãã? </title> <titleabbrev> ä¸å®å®ãªã³ã¼ã </titleabbrev> <para> Yes. But make sure, that you mark up the experimental/unstable status of the project in the documentation. The best place to do this is in the <filename>package.xml</filename> in the <status>-tag. The values for this tag are <variablelist> <varlistentry> <term>alpha</term> <listitem> <simpara> early stages of development, all things could change (API, behavoir) without notice, expect lots of bugs </simpara> </listitem> </varlistentry> <varlistentry> <term>beta</term> <listitem> <simpara> API should normally not change, usable software, expect bugs </simpara> </listitem> </varlistentry> <varlistentry> <term>devel</term> <listitem> <simpara> a release for other developers who want early access to test and give feedback, code quality may vary from pre-alpha to stable </simpara> </listitem> </varlistentry> <varlistentry> <term>stable</term> <listitem> <simpara> the software was tested, the API fixed, the documentation wrote and is the recommended release for users and production enviroments </simpara> </listitem> </varlistentry> <varlistentry> <term>snapshot</term> <listitem> <simpara> a CVS snapshot from a certain date </simpara> </listitem> </varlistentry> </variablelist> </para> </sect1> <sect1 id="faq.add-examples"> <title> Am I expected to add examples and/or test files to my package and where to store them? </title> <titleabbrev> ãµã³ãã«ã®è¿½å </titleabbrev> <para> Examples are a good idea, especially when your class has a complex API. But examples are only a part of a documentation. Don't create examples instead of a documentation. You should store the documentation and the examples in a sub directory 'docs' of the package directory. </para> <para> Test scripts are recommended when your class has to be compiled, requires special extentions/programs or needs correctly installed additional files (i.e. templates, graphics). Store them in sub directory called 'tests'. </para> </sect1> <sect1 id="faq.competitive-packages"> <title> Are different packages or classes with similar features allowed? </title> <titleabbrev> Competitive code </titleabbrev> <simpara> There is no problem with competitive packages, but we want to avoid pollution with 10 template classes, 7 different mail classes, and 3 different layers for databases doing the same only with different function names. </simpara> <para> First of all, do a reality check: Why do I want to commit a new package? Really bad answers are <quote>To see my name in PEAR</quote> or <quote>I didn't understand the API of the existing class</quote>. </para> <para> A good reason for a new class is often, that you are missing a function, behaviour or speed in an existing implementation. In this case, you should take a look at this class, if it possible to extend this class. If not, then you have a good reason to commit a new class. <quote>If not</quote> means, it isn't possible to add the required functionality without changing the basics of this class. </para> <simpara> If you write a new class, try to keep API compatibility with existing classes as far as possible! If it isn't possible to keep the class compatible himself, try to create a wrapper class to keep compatibility. Don't care, if this wrapper needs a lot of time or memory, a wrapper class only has to keep compatibility and make migration easier. </simpara> <para> Committing a competitive class has to be announced on the <ulink url="mailto:&email.pear.dev;">PEAR developers mailinglist</ulink>! </para> </sect1> <sect1 id="faq.question"> <title> ç§ã¯PEARã«çåãããã¾ããã©ãã§å°ããã°ããã§ãã? </title> <titleabbrev> 質åããã㨠</titleabbrev> <para> <itemizedlist> <listitem> <para> General questions about the usage of PEAR components should be posted to the mailing list <ulink url="mailto:&email.pear.general;">&email.pear.general;</ulink>. </para> </listitem> <listitem> <para> All technical discussions concerning the development of PEAR components should be posted to <ulink url="mailto:&email.pear.dev;"> &email.pear.dev;</ulink>. </para> </listitem> <listitem> <para> Question concerning the website can be sent to <ulink url="mailto:&email.pear.webmaster;"> &email.pear.webmaster;</ulink>. </para> </listitem> </itemizedlist> </para> <para> Information on subscribing this mailing lists can be found <ulink url="&url.pear.support;">here</ulink>. </para> <para> On all mailing lists mentioned above the language is english and the way you ask questions should always be polite :-). </para> </sect1> <sect1 id="faq.require"> <title> A required package includes a package, my package needs it too. Should I include it again? </title> <para> Yes. You should include every package, you need with <function>require_once</function> or <function>include_once </function>, also when it is included already by another package. </para> </sect1> <sect1 id="faq.windows"> <title> PEARã¯Windowsã§åä½ãã¾ãã? </title> <titleabbrev> PEARã¨Windows </titleabbrev> <para> Windowsã§PEARã®åä½ãããã«ã¯ãPEARãã¤ã³ã¹ãã¼ã«ãããã£ã¬ã¯ã㪠(ä¾ãã°<filename>c:\php\pear</filename>)ãããªãã® <filename>php.ini</filename>ã®include_pathã«è¿½å ããå¿ è¦ã ããã ãã§ãã </para> <simpara> Note: ããã¤ã*nixã®ç¹å®ã®ã³ãã³ãã使ç¨ãããããWindowsã§åä½ããªãã¯ã©ã¹ (Schedule/At.phpã®ããã«)ãããã¾ãã </simpara> </sect1> <sect1 id="faq.licenses"> <title> What licenses are allowed in PEAR/PECL? </title> <titleabbrev> Allowed licenses </titleabbrev> <simpara> Answer written by Jan Lehnardt, Tomas V.V. Cox and Rasmus Lerdorf. </simpara> <para> To make it short: Any Open Source/Free Software License. See the <ulink url="&url.license.opensource;"> OSI Approved Licenses</ulink> for a summary of Open Source licenses and <ulink url="&url.license.gnu;"> FSF Approved Licenses</ulink>. Pick one that appears on both lists. It does not need to be a GPL-compatible license from the FSF list. Here are a subset of the licenses that are on both lists: Apache License, Artistic license, BSD license, Common Public License, GPL, IBM Public License, Intel Open Source License, Jabber Open Source License, LGPL, MIT license, Mozilla Public License, PHP License, Python license, Python Software Foundation License, QPL, Sleepycat License, Sun Industry Standards Source License (SISSL), Sun Public License, W3C license, zlib/libpng license, Zope Public license. </para> <para> The recommended licenses are <ulink url="&url.license.php;">PHP</ulink>, <ulink url="&url.license.lgpl;">LGPL</ulink> and <ulink url="&url.license.bsd;">BSD</ulink> style. </para> <para> Note that for PECL extensions that are linked into PHP, the license must be compatible with the PHP license. That means you can not GPL a PECL extension or you would be violating the GPL. Note also that if you write an extension that links against a GPL'ed library you will be violating the GPL. If you need to link against a GPL'ed library, get permission from the author of the library. </para> <para> To set the license of you PEAR/PECL package, put it in the head of all source code files of your package and also the type of it inside the <license> tag of your package description file (<filename>package.xml</filename>). </para> </sect1> <sect1 id="faq.tabs-vs-spaces"> <title> ãªãPEARã³ã¼ãã£ã³ã°æ¨æºã¯ã¤ã³ãã³ãã¯ã¹ãã¼ã¹ã®ã¿ãªã®ã§ãã? </title> <titleabbrev> ã¿ãã¨ã¹ãã¼ã¹ </titleabbrev> <simpara> Answer written by Stig Bakken. </simpara> <para> ã¿ãã使ç¨ããã¹ãã¼ã¹ãç¨ãããã¨ã¯ï¼ã³ã¼ãããã¹ã¦ã®ã¨ãã£ã¿ããã³ ãã¥ã¼ã¯ã§ä¸è²«ãã¦è¡¨ç¤ºããããã¨ãä¿è¨¼ãããã ä¸ã¤ã®æ¹æ³ã§ãã å¤ãã®ã¨ãã£ã¿ã¯ã¿ãã«4ã¤ã®ã¹ãã¼ã¹ãä¸ãï¼ã¾ãããããã®ã¨ãã£ã¿ã ã¿ã¼ããã«ã»ããã°ã©ã ãã¦ã¼ãã£ãªã£ãã£ã¯8ã¤ã®ã¹ãã¼ã¹ãã¿ãã«ä¸ãã¾ãã ä¾: <literallayout><![CDATA[printf("%s", $arg);]]></literallayout> ãã®ä¾ã§ã¯7ã¤ã®ã¹ãã¼ã¹ã"$arg"ã®åã«ããã¾ãã ãããã®ã³ã¼ãã4ã¤ã®ã¹ãã¼ã¹ã§ã¿ãã表示ãããã¨ãã£ã¿ã®ä¸ã§æ¸ãããã°ã 1ã¤ã®ã¿ãããã³3ã¤ã®ã¹ãã¼ã¹ã¨ãã¦æ ¼ç´ãããã§ãããã ããä»ã®éçºè ã8ã¤ã®ã¹ãã¼ã¹ã§ã¿ãã表示ãããã¨ãã£ã¿ã§ åããã¡ã¤ã«ãç·¨éããã¨ï¼æ¬¡ã®ããã«è¦ããã§ããã: <literallayout><![CDATA[printf("%s", $arg);]]></literallayout> </para> <para> ããªãããã«ã8ã¤ã®ã¹ãã¼ã¹ã§ã¿ããæ±ãã¨ãã£ã¿ã§ã®æ¬¡ã®ã³ã¼ãã èãã¦ã¿ã¾ããã: <literallayout><![CDATA[ if ($foo && $bar) { }]]></literallayout> 4ã¤ã®ã¹ãã¼ã¹ã§ã¿ããæ±ãã¨ãã£ã¿ã§ã¯ï¼æ¬¡ã®ããã«è¦ãã¾ãã: <literallayout><![CDATA[ if ($foo && $bar) { }]]></literallayout> </para> <simpara> PEARã®ãããªäººã ãå¤ãã®ç°ãªã£ãã·ã¹ãã ãã¨ãã£ã¿ã使ç¨ãã ã³ãã¥ããã£ã§ã¯ãã¿ãã¯åç´ã«ã¯æ©è½ãã¾ããã 人ã ã¯çµå±ãããããã®ã¨ãã£ã¿ã§ã¬ã³ããªã³ã°ã«ç©ºç½ã使ç¨ãã ä»ã®äººã«ã¯å£ããã¬ã³ããªã³ã°ãè¦ãã¦ãã¾ãã§ãããã ã¹ãã¼ã¹ã使ããã¨ã ãããã ãã«ã§ãåãããã«è¦ããããã«ãã å¯ä¸ã®æ¹æ³ãªã®ã§ãã </simpara> <para> Jamie Zawinskiã <ulink url="&url.tabs.vs.spaces;">ãã®åé¡ã«ã¤ãã¦</ulink> æ¸ãã¦ãã¾ãã </para> <para> ã¾ãã³ã¼ããé©åãªã¹ã¿ã¤ã«ã«å¤æããã®ãå©ãã <ulink url="&url.astyle;">Astyle</ulink>ã¨ãããã¼ã«ãããã¾ãã </para> </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil sgml-namecase-general:t sgml-general-insert-case:lower End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
Index: peardoc/ja/chapters/faq.xml +++ peardoc/ja/chapters/faq.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- sync: 1.8 --> <!-- [mj] The FAQ needs some heavy revision - don't translate it right now --> <chapter id="faq"> <title>FAQ - é »åºãã質å</title> <titleabbrev>FAQ</titleabbrev> <sect1 id="faq.whatis"> <title> PEAR?ã¨ã¯? </title> <para> ããã«ã¤ãã¦ã¯<link linkend="introduction">ãã</link>ã«è¨è¿°ããã¦ãã¾ãã </para> </sect1> <sect1 id="faq.contributor"> <title> How to become a PEAR contributor and/or how to get CVS access to PEAR? </title> <titleabbrev> è²¢ç®ãã </titleabbrev> <para> ããã«ã¤ãã¦ã¯<link linkend="developers.intro">ãã</link>ã«è¨è¿°ããã¦ãã¾ãã </para> </sect1> <sect1 id="faq.c-module"> <title> ç§ã¯PHPã¢ã¸ã¥ã¼ã«ãCè¨èªã§æ¸ãã¾ãããPEARã«ãããå«ãããã®ã«ã¼ã«ã¯ ããã¾ãã? </title> <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> Cè¨èªã§ããããPELCã¢ã¸ã¥ã¼ã«ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯? </title> <titleabbrev> PECLã¢ã¸ã¥ã¼ã«ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ </titleabbrev> <simpara> Answer written by Christian Stocker. </simpara> <simpara> Cè¨èªã§æ¸ãããPEARãPECLæ¡å¼µã®ãµãã¼ãã¯ãã¾ãããã§ãã¦ãã¾ããã ããã«ããªããããªãã®ã·ã¹ãã ä¸ã§Cè¨èªã§æ¸ãããã¢ã¸ã¥ã¼ã«ã PEAR:Installerãå®è¡ããã¾ã§ã®æ¹æ³ãçãè¨è¿°ãã¦ãã¾ãã </simpara> <simpara> PEARããããã±ã¼ã¸ããã¦ã³ãã¼ãããæ¬¡ã«ãããã©ããã«å±éãã¦ãã ããã æ°ãã使ããããã£ã¬ã¯ããªã«ç§»åããæ¬¡ã®ã¹ãããã«ãã¤ãã¾ãã: </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> </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 id="faq.separated"> <title> ãªãPEARã¯pear/ã¨php-src/pear/ã«åããã¦ããã®ã§ãã? </title> <titleabbrev> ã©ããã¦pear/ã¨php-src/pearã? </titleabbrev> <simpara> ã¾ãphp-src/pearã«PEARã®ç¬¬ä¸è¦ç´ ãä¿åããã¦ãã¾ãã ããã¦ãããã¯æ°ããPHPã®ãªãªã¼ã¹ã«ãã³ãã«ããã¾ããã </simpara> <simpara> For future releases of PEAR this isn't workable because PEAR will become too big to be bundled with every release of PHP. So there was a decision to commit all new elements to an own top level directory pear. The other elements which are currently remaining in php-src/pear will be moved to the new top level directory soon. Only the <link linkend="about-pfc">PFC code</link> and the PEAR package manager code will be bundled with every new release automatically. </simpara> </sect1> <sect1 id="faq.directory-structure"> <title> ãªãpear/ã¨php-src/pear/ã§ãã£ã¬ã¯ããªæ§é ãéãã®ã§ãã? </title> <titleabbrev> ãªãpear/ã¨php-src/pearã¯éãã®ã§ãã? </titleabbrev> <simpara> Answer written by Stig Bakken. </simpara> <para> <filename>php-src/pear/</filename>ã®ãã£ã¬ã¯ããªæ§é ã¯ã ã¤ã³ã¹ãã¼ã«ããªã¼ã«é©ããæ§é ã«ãªã£ã¦ãã¾ãã (ããã©ã«ãã<filename>/usr/local/lib/php</filename>), ããã¦åç´ãªéå±¤ãæ§æãã¦ãã¾ãã ããã<filename>pear/</filename>ã®æ§é ã¯ããã±ã¼ã¸ã«å±ãã ãã¡ã¤ã«æ§æã«ãªã£ã¦ãã¾ãã Where files are located in each package directory is completely independent from where they end up being installed, this is all determined by the package description file. </para> </sect1> <sect1 id="faq.flat-structure"> <title> Why a flat directory structure instead of a deep? </title> <titleabbrev> 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 think that in CVS, this file should be in pear/XML/RPC.php, but that's not the case. XML_RPC is an independent package with its own directory in CVS, in this case the RPC.php file is actually located at pear/XML_RPC/RPC.php. The package description file (package.xml) is used to say where the files should finally be installed. </simpara> <simpara> The reason CVS is organized this way is that it makes package administration much easier. </simpara> </sect1> <sect1 id="faq.unstable-code"> <title> å®é¨çãã¾ãã¯ä¸å®å®ãªãã®ãã³ãããåºæ¥ã¾ãã? </title> <titleabbrev> ä¸å®å®ãªã³ã¼ã </titleabbrev> <para> Yes. But make sure, that you mark up the experimental/unstable status of the project in the documentation. The best place to do this is in the <filename>package.xml</filename> in the <status>-tag. The values for this tag are <variablelist> <varlistentry> <term>alpha</term> <listitem> <simpara> early stages of development, all things could change (API, behavoir) without notice, expect lots of bugs </simpara> </listitem> </varlistentry> <varlistentry> <term>beta</term> <listitem> <simpara> API should normally not change, usable software, expect bugs </simpara> </listitem> </varlistentry> <varlistentry> <term>devel</term> <listitem> <simpara> a release for other developers who want early access to test and give feedback, code quality may vary from pre-alpha to stable </simpara> </listitem> </varlistentry> <varlistentry> <term>stable</term> <listitem> <simpara> the software was tested, the API fixed, the documentation wrote and is the recommended release for users and production enviroments </simpara> </listitem> </varlistentry> <varlistentry> <term>snapshot</term> <listitem> <simpara> a CVS snapshot from a certain date </simpara> </listitem> </varlistentry> </variablelist> </para> </sect1> <sect1 id="faq.add-examples"> <title> Am I expected to add examples and/or test files to my package and where to store them? </title> <titleabbrev> ãµã³ãã«ã®è¿½å </titleabbrev> <para> Examples are a good idea, especially when your class has a complex API. But examples are only a part of a documentation. Don't create examples instead of a documentation. You should store the documentation and the examples in a sub directory 'docs' of the package directory. </para> <para> Test scripts are recommended when your class has to be compiled, requires special extentions/programs or needs correctly installed additional files (i.e. templates, graphics). Store them in sub directory called 'tests'. </para> </sect1> <sect1 id="faq.competitive-packages"> <title> Are different packages or classes with similar features allowed? </title> <titleabbrev> Competitive code </titleabbrev> <simpara> There is no problem with competitive packages, but we want to avoid pollution with 10 template classes, 7 different mail classes, and 3 different layers for databases doing the same only with different function names. </simpara> <para> First of all, do a reality check: Why do I want to commit a new package? Really bad answers are <quote>To see my name in PEAR</quote> or <quote>I didn't understand the API of the existing class</quote>. </para> <para> A good reason for a new class is often, that you are missing a function, behaviour or speed in an existing implementation. In this case, you should take a look at this class, if it possible to extend this class. If not, then you have a good reason to commit a new class. <quote>If not</quote> means, it isn't possible to add the required functionality without changing the basics of this class. </para> <simpara> If you write a new class, try to keep API compatibility with existing classes as far as possible! If it isn't possible to keep the class compatible himself, try to create a wrapper class to keep compatibility. Don't care, if this wrapper needs a lot of time or memory, a wrapper class only has to keep compatibility and make migration easier. </simpara> <para> Committing a competitive class has to be announced on the <ulink url="mailto:&email.pear.dev;">PEAR developers mailinglist</ulink>! </para> </sect1> <sect1 id="faq.question"> <title> ç§ã¯PEARã«çåãããã¾ããã©ãã§å°ããã°ããã§ãã? </title> <titleabbrev> 質åããã㨠</titleabbrev> <para> <itemizedlist> <listitem> <para> General questions about the usage of PEAR components should be posted to the mailing list <ulink url="mailto:&email.pear.general;">&email.pear.general;</ulink>. </para> </listitem> <listitem> <para> All technical discussions concerning the development of PEAR components should be posted to <ulink url="mailto:&email.pear.dev;"> &email.pear.dev;</ulink>. </para> </listitem> <listitem> <para> Question concerning the website can be sent to <ulink url="mailto:&email.pear.webmaster;"> &email.pear.webmaster;</ulink>. </para> </listitem> </itemizedlist> </para> <para> Information on subscribing this mailing lists can be found <ulink url="&url.pear.support;">here</ulink>. </para> <para> On all mailing lists mentioned above the language is english and the way you ask questions should always be polite :-). </para> </sect1> <sect1 id="faq.require"> <title> A required package includes a package, my package needs it too. Should I include it again? </title> <para> Yes. You should include every package, you need with <function>require_once</function> or <function>include_once </function>, also when it is included already by another package. </para> </sect1> <sect1 id="faq.windows"> <title> PEARã¯Windowsã§åä½ãã¾ãã? </title> <titleabbrev> PEARã¨Windows </titleabbrev> <para> Windowsã§PEARã®åä½ãããã«ã¯ãPEARãã¤ã³ã¹ãã¼ã«ãããã£ã¬ã¯ã㪠(ä¾ãã°<filename>c:\php\pear</filename>)ãããªãã® <filename>php.ini</filename>ã®include_pathã«è¿½å ããå¿ è¦ã ããã ãã§ãã </para> <simpara> Note: ããã¤ã*nixã®ç¹å®ã®ã³ãã³ãã使ç¨ãããããWindowsã§åä½ããªãã¯ã©ã¹ (Schedule/At.phpã®ããã«)ãããã¾ãã </simpara> </sect1> <sect1 id="faq.licenses"> <title> What licenses are allowed in PEAR/PECL? </title> <titleabbrev> Allowed licenses </titleabbrev> <simpara> Answer written by Jan Lehnardt, Tomas V.V. Cox and Rasmus Lerdorf. </simpara> <para> To make it short: Any Open Source/Free Software License. See the <ulink url="&url.license.opensource;"> OSI Approved Licenses</ulink> for a summary of Open Source licenses and <ulink url="&url.license.gnu;"> FSF Approved Licenses</ulink>. Pick one that appears on both lists. It does not need to be a GPL-compatible license from the FSF list. Here are a subset of the licenses that are on both lists: Apache License, Artistic license, BSD license, Common Public License, GPL, IBM Public License, Intel Open Source License, Jabber Open Source License, LGPL, MIT license, Mozilla Public License, PHP License, Python license, Python Software Foundation License, QPL, Sleepycat License, Sun Industry Standards Source License (SISSL), Sun Public License, W3C license, zlib/libpng license, Zope Public license. </para> <para> The recommended licenses are <ulink url="&url.license.php;">PHP</ulink>, <ulink url="&url.license.lgpl;">LGPL</ulink> and <ulink url="&url.license.bsd;">BSD</ulink> style. </para> <para> Note that for PECL extensions that are linked into PHP, the license must be compatible with the PHP license. That means you can not GPL a PECL extension or you would be violating the GPL. Note also that if you write an extension that links against a GPL'ed library you will be violating the GPL. If you need to link against a GPL'ed library, get permission from the author of the library. </para> <para> To set the license of you PEAR/PECL package, put it in the head of all source code files of your package and also the type of it inside the <license> tag of your package description file (<filename>package.xml</filename>). </para> </sect1> <sect1 id="faq.tabs-vs-spaces"> <title> ãªãPEARã³ã¼ãã£ã³ã°æ¨æºã¯ã¤ã³ãã³ãã¯ã¹ãã¼ã¹ã®ã¿ãªã®ã§ãã? </title> <titleabbrev> ã¿ãã¨ã¹ãã¼ã¹ </titleabbrev> <simpara> Answer written by Stig Bakken. </simpara> <para> ã¿ãã使ç¨ããã¹ãã¼ã¹ãç¨ãããã¨ã¯ï¼ã³ã¼ãããã¹ã¦ã®ã¨ãã£ã¿ããã³ ãã¥ã¼ã¯ã§ä¸è²«ãã¦è¡¨ç¤ºããããã¨ãä¿è¨¼ãããã ä¸ã¤ã®æ¹æ³ã§ãã å¤ãã®ã¨ãã£ã¿ã¯ã¿ãã«4ã¤ã®ã¹ãã¼ã¹ãä¸ãï¼ã¾ãããããã®ã¨ãã£ã¿ã ã¿ã¼ããã«ã»ããã°ã©ã ãã¦ã¼ãã£ãªã£ãã£ã¯8ã¤ã®ã¹ãã¼ã¹ãã¿ãã«ä¸ãã¾ãã ä¾: <literallayout><![CDATA[printf("%s", $arg);]]></literallayout> ãã®ä¾ã§ã¯7ã¤ã®ã¹ãã¼ã¹ã"$arg"ã®åã«ããã¾ãã ãããã®ã³ã¼ãã4ã¤ã®ã¹ãã¼ã¹ã§ã¿ãã表示ãããã¨ãã£ã¿ã®ä¸ã§æ¸ãããã°ã 1ã¤ã®ã¿ãããã³3ã¤ã®ã¹ãã¼ã¹ã¨ãã¦æ ¼ç´ãããã§ãããã ããä»ã®éçºè ã8ã¤ã®ã¹ãã¼ã¹ã§ã¿ãã表示ãããã¨ãã£ã¿ã§ åããã¡ã¤ã«ãç·¨éããã¨ï¼æ¬¡ã®ããã«è¦ããã§ããã: <literallayout><![CDATA[printf("%s", $arg);]]></literallayout> </para> <para> ããªãããã«ã8ã¤ã®ã¹ãã¼ã¹ã§ã¿ããæ±ãã¨ãã£ã¿ã§ã®æ¬¡ã®ã³ã¼ãã èãã¦ã¿ã¾ããã: <literallayout><![CDATA[ if ($foo && $bar) { }]]></literallayout> 4ã¤ã®ã¹ãã¼ã¹ã§ã¿ããæ±ãã¨ãã£ã¿ã§ã¯ï¼æ¬¡ã®ããã«è¦ãã¾ãã: <literallayout><![CDATA[ if ($foo && $bar) { }]]></literallayout> </para> <simpara> PEARã®ãããªäººã ãå¤ãã®ç°ãªã£ãã·ã¹ãã ãã¨ãã£ã¿ã使ç¨ãã ã³ãã¥ããã£ã§ã¯ãã¿ãã¯åç´ã«ã¯æ©è½ãã¾ããã 人ã ã¯çµå±ãããããã®ã¨ãã£ã¿ã§ã¬ã³ããªã³ã°ã«ç©ºç½ã使ç¨ãã ä»ã®äººã«ã¯å£ããã¬ã³ããªã³ã°ãè¦ãã¦ãã¾ãã§ãããã ã¹ãã¼ã¹ã使ããã¨ã ãããã ãã«ã§ãåãããã«è¦ããããã«ãã å¯ä¸ã®æ¹æ³ãªã®ã§ãã </simpara> <para> Jamie Zawinskiã <ulink url="&url.tabs.vs.spaces;">ãã®åé¡ã«ã¤ãã¦</ulink> æ¸ãã¦ãã¾ãã </para> <para> ã¾ãã³ã¼ããé©åãªã¹ã¿ã¤ã«ã«å¤æããã®ãå©ãã <ulink url="&url.astyle;">Astyle</ulink>ã¨ãããã¼ã«ãããã¾ãã </para> </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil sgml-namecase-general:t sgml-general-insert-case:lower End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->