| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
generate-ext - Create the subversion source layout for a new PHP extension that is PECL-readyIntroductionThe generate-pecl command is used to create a bare skeleton for a new PECL package or PHP extension as it will reside in Subversion. This is designed to provide all of the functionality of the ext_skel command but also generates a package.xml and other files that can be used to automatically update for a release. One argument is accepted, extension. This command automatically creates class definitions as well as ZEND_ARG_INFO for parameters to provide useful reflection to your extension's users. extensionThe extension argument is the name of the package to create a skeleton for. This is used as the directory name and as the extension name used within files related to creating a PECL package. --protoThe --proto or -p option specifies a file containing function and method prototypes to create in your new extension. As an example, here are some supported protos:
A proto begins with either the return type or access modifiers static and one of public, protected and private followed by the return type. Next, the name of the function, or name of the class::method is specified, followed by an argument list. Optional methods are enclosed in [brackets] and whitespace is important, so follow the conventions as in the above examples. Each argument consists of a type followed by an argument name. The types are informed by parameter parsing as supported by PHP's internal zend_parse_parameters(). This is thoroughly documented in the file README.PARAMETER_PARSING inside PHP's source code. Note that some of the parameter parsing choices only work in PHP 6, in particular the unicode-related options. The following types are supported:
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「generate-ext - Create the subversion source layout for a new PHP extension that is PECL-ready」をGoogle検索
|