Browse Source

decompiler: more sample templating trick

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1344 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.1
Xuefer 7 years ago
parent
commit
68de62de57
2 changed files with 5 additions and 3 deletions
  1. +3
    -1
      devel/run
  2. +2
    -2
      mod_disassembler/sample.cpp.php

+ 3
- 1
devel/run View File

@ -244,7 +244,9 @@ run() {
shift
case "$1" in
*.cpp.php)
cpp -C -P -traditional-cpp -DPHP_VERSION=$phpVersion $1 \
< "$1" \
sed -r -e 's#__#____#g' \
| cpp -C -P -traditional-cpp -DPHP_VERSION=$phpVersion \
| sed -r -e 's#^ +##g' -e 's#\t +#\t#g' -e 's#____#__#g' > sample.php || exit $?
shift
./php-cli -c devel.ini ./bin/phpdc.phpr sample.php "$@" | tee decompiled.php


+ 2
- 2
mod_disassembler/sample.cpp.php View File

@ -531,8 +531,8 @@ require 'require.php';
require_once 'require_once.php';
include 'include.php';
include_once 'include_once.php';
echo ____FILE____;
echo ____LINE____;
echo __FILE__;
echo __LINE__;
#if PHP_VERSION >= 530
echo 'PHP 5.3+ code testing';
const CONST_VALUE = 1;


Loading…
Cancel
Save