XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
657 B

  1. #! /usr/bin/php -dopen_basedir=
  2. <?php
  3. $srcdir = dirname(__FILE__);
  4. require_once("$srcdir/../lib/Decompiler.class.php");
  5. if (file_exists("$srcdir/phpdc.debug.php")) {
  6. include("$srcdir/phpdc.debug.php");
  7. }
  8. if (!isset($argv)) {
  9. $argv = $_SERVER['argv'];
  10. $argc = $_SERVER['argc'];
  11. }
  12. $dc = new Decompiler();
  13. if (isset($argv[2])) {
  14. eval('$dc->dc = ' . file_get_contents($argv[2]) . ';');
  15. }
  16. else if (isset($argv[1])) {
  17. $dc->decompileFile($argv[1]);
  18. }
  19. else {
  20. $phpcode = '';
  21. if (!defined('stdin')) {
  22. define('stdin', fopen('php://stdin', 'rb'));
  23. }
  24. while (!feof(stdin)) {
  25. $phpcode .= fgets(stdin);
  26. }
  27. $dc->decompileString($phpcode);
  28. }
  29. $dc->output();