GithubHelp home page GithubHelp logo

compiler's People

Contributors

kiss291323003 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

compiler's Issues

个别文件加密后运行出错

环境php7.2.18,错误信息 :PHP Parse error: syntax error, unexpected '1' (T_LNUMBER) in /www/wwwroot/tron/App/Process/TronCollect.php on line 2

php 7.1编译有问题

/usr/local/src/compiler/src/compiler.c: In function ‘mixed_opcode’:
/usr/local/src/compiler/src/compiler.c:240:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (size_t i = 0; i < opline->last; i++) {
^
/usr/local/src/compiler/src/compiler.c:240:5: note: use option -std=c99 or -std=gnu99 to compile your code
make: *** [src/compiler.lo] Error 1

make 时报错了,寻求协助,谢谢;

image
/Volumes/Media/Jiachao/Sites/C/compiler/src/aes.h:53:58: note: passing argument to parameter 'key' here
void AES_init_ctx_iv(struct AES_ctx* ctx, const uint8_t* key, const uint8_t* iv);
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:97:36: warning: passing 'char [24]' to parameter of type 'const uint8_t ' (aka 'const unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign]
AES_init_ctx_iv(&ctx, AES_KEY, AES_IV_KEY);
^~~~~~~~~~
/Volumes/Media/Jiachao/Sites/C/compiler/src/config.h:2:20: note: expanded from macro 'AES_IV_KEY'
#define AES_IV_KEY "sdmkr3y8rfohsndjkry3289"
^~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Media/Jiachao/Sites/C/compiler/src/aes.h:53:78: note: passing argument to parameter 'iv' here
void AES_init_ctx_iv(struct AES_ctx
ctx, const uint8_t
key, const uint8_t* iv);
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:99:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
encrypt_len = PKCS7Cutting(pkcs7,encrypt_len);
^~~~~
/Volumes/Media/Jiachao/Sites/C/compiler/src/pkcs7.h:15:24: note: passing argument to parameter 'p' here
int PKCS7Cutting(char *p, int plen);
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:100:49: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
zend_string *eval_string = zend_string_init(pkcs7,encrypt_len,0);
^~~~~
/usr/local/Cellar/[email protected]/7.4.25/include/php/Zend/zend_string.h:155:69: note: passing argument to parameter 'str' here
static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, int persistent)
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:104:11: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
char *filename = zend_get_executed_filename();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:135:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
eval_string = zend_string_init(raw_string,raw_string_len,0);
^~~~~~~~~~
/usr/local/Cellar/[email protected]/7.4.25/include/php/Zend/zend_string.h:155:69: note: passing argument to parameter 'str' here
static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, int persistent)
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:138:11: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
char *filename = zend_get_executed_filename();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:160:9: error: implicit declaration of function 'zend_vm_set_opcode_handler' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
zend_vm_set_opcode_handler(orig_opline);
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:163:9: error: implicit declaration of function 'zend_vm_set_opcode_handler' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
zend_vm_set_opcode_handler(orig_opline);
^
15 warnings and 5 errors generated.

mac big sur make install 报错

php 7.2.2 osx 11.1

error: implicit
declaration of function 'php_info_print_table_start' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
php_info_print_table_start();

error: implicit
declaration of function 'php_info_print_table_header' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
php_info_print_table_header(2, "Version", PHP_EASY_COMPILER_VERSION);

error: implicit
declaration of function 'php_info_print_table_end' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
php_info_print_table_end();

解密的时候总是出现这种情况

PHP Warning: Unexpected character in input: '' (ASCII=6) state=0 in /var/www/index/index.php on line 1
PHP Parse error: syntax error, unexpected 'w' (T_STRING) in /var/www/index/index.php on line 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.