CodeGen_PECL
[ class tree: CodeGen_PECL ] [ index: CodeGen_PECL ] [ all elements ]

Source for file Cli.php

Documentation is available at Cli.php

  1. <?php
  2. /**
  3. * Console script to generate PECL extensions from command line
  4. *
  5. @author Hartmut Holzgraefe <hartmut@php.net>
  6. @version $Id: pecl-gen,v 1.4 2006/06/25 11:35:22 hholzgra Exp $
  7. */
  8.  
  9. require_once "CodeGen/PECL/Command.php";
  10.  
  11. // create extension object
  12. $extension = new CodeGen_PECL_Extension;
  13.  
  14. $command = new CodeGen_PECL_Command($extension"pecl-gen");
  15.  
  16. if ($command->options->have("experimental""x")) {
  17.     echo "the --experimental (-x) option has been deprecated
  18.  
  19. please use the 'version' attribute of the <extension> tag
  20. to select version-specific features
  21. ";
  22.  
  23.     exit(3);
  24. }
  25.     
  26.     
  27. if ($command->options->have("function"))
  28. {
  29.     $command->singleFunction();
  30.     exit(0);
  31. }
  32.  
  33. // ext_skel compatibility?
  34. if ($command->options->have("extname")) {
  35.     $command->extSkelCompat();
  36.     exit(0);
  37.  
  38.  
  39. $parser = new CodeGen_PECL_ExtensionParser($extension);
  40.  
  41. $command->execute($parser);
  42.  
  43. ?>

Documentation generated on Mon, 11 Mar 2019 15:39:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.