- 积分
- 16
- 威望
-
- 金钱
-
- 注册时间
- 2015-3-19
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
--mode=compile cc -I. -I/home/zhaoqian/php-beast-master -DPHP_ATOM_INC -I/home/zhaoqian/php-beast-master/include -I/home/zhaoqian/php-beast-master/main -I/home/zhaoqian/php-beast-master -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/zhaoqian/php-beast-master/beast.c -o beast.lo
cc -I. -I/home/zhaoqian/php-beast-master -DPHP_ATOM_INC -I/home/zhaoqian/php-beast-master/include -I/home/zhaoqian/php-beast-master/main -I/home/zhaoqian/php-beast-master -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/zhaoqian/php-beast-master/beast.c -fPIC -DPIC -o .libs/beast.o
/home/zhaoqian/php-beast-master/beast.c: In function ‘filter_code_comments’:
/home/zhaoqian/php-beast-master/beast.c:198:5: warning: implicit declaration of function ‘zend_strip’ [-Wimplicit-function-declaration]
zend_strip(TSRMLS_C);
^
/home/zhaoqian/php-beast-master/beast.c: In function ‘encrypt_file’:
/home/zhaoqian/php-beast-master/beast.c:259:28: error: request for member ‘len’ in something not a structure or union
inlen = codes.value.str.len;
^
/home/zhaoqian/php-beast-master/beast.c:260:28: error: request for member ‘val’ in something not a structure or union
inbuf = codes.value.str.val;
^
In file included from /usr/local/php/include/php/main/php.h:388:0,
from /home/zhaoqian/php-beast-master/beast.c:43:
/home/zhaoqian/php-beast-master/beast.c:269:9: error: ‘ENFORCE_SAFE_MODE’ undeclared (first use in this function)
ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL);
^
/usr/local/php/include/php/main/php_streams.h:568:107: note: in definition of macro ‘php_stream_open_wrapper’
#define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
^
/home/zhaoqian/php-beast-master/beast.c:269:9: note: each undeclared identifier is reported only once for each function it appears in
ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL);
^
/usr/local/php/include/php/main/php_streams.h:568:107: note: in definition of macro ‘php_stream_open_wrapper’
#define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
^
In file included from /usr/local/php/include/php/main/php.h:388:0,
from /home/zhaoqian/php-beast-master/beast.c:43:
/usr/local/php/include/php/main/php_streams.h:311:72: warning: passing argument 2 of ‘_php_stream_write’ from incompatible pointer type [-Wincompatible-pointer-types]
#define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count))
^
/home/zhaoqian/php-beast-master/beast.c:285:5: note: in expansion of macro ‘php_stream_write’
php_stream_write(output_stream, &dumplen, sizeof(dumplen));
^
/usr/local/php/include/php/main/php_streams.h:309:15: note: expected ‘const char *’ but argument is of type ‘int *’
PHPAPI size_t _php_stream_write(php_stream *stream, const char *buf, size_t count);
^
/home/zhaoqian/php-beast-master/beast.c: In function ‘cgi_compile_file’:
/home/zhaoqian/php-beast-master/beast.c:430:37: warning: passing argument 2 of ‘zend_fopen’ from incompatible pointer type [-Wincompatible-pointer-types]
filep = zend_fopen(h->filename, &opened_path TSRMLS_CC);
^
/home/zhaoqian/php-beast-master/beast.c:430:37: note: expected ‘zend_string ** {aka struct _zend_string **}’ but argument is of type ‘char **’
/home/zhaoqian/php-beast-master/beast.c: In function ‘php_beast_cache_size’:
/home/zhaoqian/php-beast-master/beast.c:521:9: error: ‘new_value_length’ undeclared (first use in this function)
if (new_value_length == 0) {
^
/home/zhaoqian/php-beast-master/beast.c:525:16: warning: passing argument 1 of ‘beast_atoi’ from incompatible pointer type [-Wincompatible-pointer-types]
beast_atoi(new_value, &max_cache_size, &len);
^
/home/zhaoqian/php-beast-master/beast.c:485:6: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
void beast_atoi(const char *str, int *ret, int *len)
^
/home/zhaoqian/php-beast-master/beast.c:528:17: error: switch quantity not an integer
switch (new_value[len]) {
^
/home/zhaoqian/php-beast-master/beast.c: In function ‘php_beast_log_file’:
/home/zhaoqian/php-beast-master/beast.c:554:9: error: ‘new_value_length’ undeclared (first use in this function)
if (new_value_length == 0) {
^
In file included from /usr/include/string.h:630:0,
from /usr/local/php/include/php/main/../main/php_config.h:2508,
from /usr/local/php/include/php/Zend/zend_config.h:1,
from /usr/local/php/include/php/Zend/zend_portability.h:48,
from /usr/local/php/include/php/Zend/zend_types.h:27,
from /usr/local/php/include/php/Zend/zend.h:31,
from /home/zhaoqian/php-beast-master/beast.c:33:
/home/zhaoqian/php-beast-master/beast.c:558:29: warning: passing argument 1 of ‘strlen’ from incompatible pointer type [-Wincompatible-pointer-types]
beast_log_file = strdup(new_value);
^
In file included from /usr/local/php/include/php/main/../main/php_config.h:2508:0,
from /usr/local/php/include/php/Zend/zend_config.h:1,
from /usr/local/php/include/php/Zend/zend_portability.h:48,
from /usr/local/php/include/php/Zend/zend_types.h:27,
from /usr/local/php/include/php/Zend/zend.h:31,
from /home/zhaoqian/php-beast-master/beast.c:33:
/usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
extern size_t strlen (const char *__s)
^
In file included from /usr/include/string.h:630:0,
from /usr/local/php/include/php/main/../main/php_config.h:2508,
from /usr/local/php/include/php/Zend/zend_config.h:1,
from /usr/local/php/include/php/Zend/zend_portability.h:48,
from /usr/local/php/include/php/Zend/zend_types.h:27,
from /usr/local/php/include/php/Zend/zend.h:31,
from /home/zhaoqian/php-beast-master/beast.c:33:
/home/zhaoqian/php-beast-master/beast.c:558:29: warning: passing argument 1 of ‘__strdup’ from incompatible pointer type [-Wincompatible-pointer-types]
beast_log_file = strdup(new_value);
^
/usr/include/x86_64-linux-gnu/bits/string2.h:1278:14: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
extern char *__strdup (const char *__string) __THROW __attribute_malloc__;
^
/home/zhaoqian/php-beast-master/beast.c: In function ‘php_beast_enable’:
/home/zhaoqian/php-beast-master/beast.c:569:9: error: ‘new_value_length’ undeclared (first use in this function)
if (new_value_length == 0) {
^
/home/zhaoqian/php-beast-master/beast.c:573:21: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types]
if (!strcasecmp(new_value, "on") || !strcmp(new_value, "1")) {
^
In file included from /usr/local/php/include/php/main/../main/php_config.h:2508:0,
from /usr/local/php/include/php/Zend/zend_config.h:1,
from /usr/local/php/include/php/Zend/zend_portability.h:48,
from /usr/local/php/include/php/Zend/zend_types.h:27,
from /usr/local/php/include/php/Zend/zend.h:31,
from /home/zhaoqian/php-beast-master/beast.c:33:
/usr/include/string.h:529:12: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *}’
extern int strcasecmp (const char *__s1, const char *__s2)
^
In file included from /usr/include/string.h:630:0,
from /usr/local/php/include/php/main/../main/php_config.h:2508,
from /usr/local/php/include/php/Zend/zend_config.h:1,
from /usr/local/php/include/php/Zend/zend_portability.h:48,
from /usr/local/php/include/php/Zend/zend_types.h:27,
from /usr/local/php/include/php/Zend/zend.h:31,
from /home/zhaoqian/php-beast-master/beast.c:33:
/home/zhaoqian/php-beast-master/beast.c:573:49: warning: passing argument 1 of ‘__builtin_strlen’ from incompatible pointer type [-Wincompatible-pointer-types]
if (!strcasecmp(new_value, "on") || !strcmp(new_value, "1")) {
^ |
|