mirror of
https://github.com/php/php-src.git
synced 2026-03-29 03:32:20 +02:00
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
18 lines
237 B
PHP
18 lines
237 B
PHP
--TEST--
|
|
%EXTNAME%_test1() Basic test
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('%EXTNAME%')) {
|
|
echo 'skip';
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$ret = %EXTNAME%_test1();
|
|
|
|
var_dump($ret);
|
|
?>
|
|
--EXPECT--
|
|
The extension %EXTNAME% is loaded and working!
|
|
NULL
|