mirror of
https://github.com/php/php-src.git
synced 2026-04-21 15:08:16 +02:00
f35f45906e
It no longer includes a way to generate XML documentation (the PHP documentation utilities already got tools for that in svn under phpdoc/doc-base) and it no longer support function stubs.
$ php ext_skel.php --help
php ext_skel.php --ext=<name> [--experimental] [--author=<name>]
[--dir=<path>] [--std] [--onlyunix]
[--onlywindows] [--help]
--ext=<name> The name of the extension defined as <name>
--experimental Passed if this extension is experimental, this creates
the EXPERIMENTAL file in the root of the extension
--author=<name> Your name, this is used if --header is passed and
for the CREDITS file
--dir=<path> Path to the directory for where extension should be
created. Defaults to the directory of where this script
lives
--std If passed, the standard header and vim rules footer used
in extensions that is included in the core, will be used
--onlyunix Only generate configure scripts for Unix
--onlywindows Only generate configure scripts for Windows
--help This help
Example usage:
$ php ext_skel.php --ext test --std --experimental
$ php ext_skel.php --ext kalle --author "Kalle Sommer Nielsen"
$ php ext_skel.php --ext phpfi --dir "/home/kalle/dev/" --onlyunix
17 lines
252 B
PHP
17 lines
252 B
PHP
--TEST--
|
|
%EXTNAME%_test2() Basic test
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('%EXTNAME%')) {
|
|
echo 'skip';
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(%EXTNAME%_test2());
|
|
var_dump(%EXTNAME%_test2('PHP'));
|
|
?>
|
|
--EXPECT--
|
|
string(11) "Hello World"
|
|
string(9) "Hello PHP"
|