Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 48 lines (32 sloc) 0.864 kB
#!/usr/local/bin/php
<?php
# -ddisplay_errors=off -dlog_errors=on -Cq
/**
* Console script to generate PECL extensions from command line
*
* @author Hartmut Holzgraefe <hartmut@php.net>
*/
require_once "CodeGen/PECL/Command.php";
// create extension object
$extension = new CodeGen_PECL_Extension;
$command = new CodeGen_PECL_Command($extension);
if ($command->options->have("experimental", "x")) {
echo "the --experimental (-x) option has been deprecated
please use the 'version' attribute of the <extension> tag
to select version-specific features
";
exit(3);
}
if ($command->options->have("function"))
{
$command->singleFunction();
exit(0);
}
// ext_skel compatibility?
if ($command->options->have("extname")) {
$command->extSkelCompat();
exit(0);
}
$parser = new CodeGen_PECL_ExtensionParser($extension);
$command->execute($parser);
?>
Jump to Line
Something went wrong with that request. Please try again.