home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cricao de Sites - 650 Layouts Prontos
/
WebMasters.iso
/
Servidores
/
xampp-win32-1.6.7-installer.exe
/
php
/
pecl-gen
< prev
next >
Wrap
Text File
|
2007-12-20
|
933b
|
49 lines
#!C:\php5/php
<?php
# -ddisplay_errors=off -dlog_errors=on -Cq
/**
* Console script to generate PECL extensions from command line
*
* @author Hartmut Holzgraefe <hartmut@php.net>
* @version $Id: pecl-gen,v 1.4 2006/06/25 11:35:22 hholzgra Exp $
*/
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);
?>