liexusong / php-beast

PHP source code encrypt module (PHP源码加密扩展)
1.71k stars 503 forks source link

php7.1.5 nts make warning, gcc 4.8.5 20150623 #66

Open springleng opened 7 years ago

springleng commented 7 years ago

/root/softwares/php-beast/beast.c: In function 'segmentfault_deadlock_fix': /root/softwares/php-beast/beast.c:1058:10: warning: assignment makes pointer from integer without a cast [enabled by default] info = backtrace_symbols(array, (int)size); ^ /root/softwares/php-beast/beast.c: In function 'zif_beast_file_expire': /root/softwares/php-beast/beast.c:1438:16: warning: assignment from incompatible pointer type [enabled by default] string = php_format_date(format, strlen(format), expire, 1 TSRMLS_CC); ^

springleng commented 7 years ago

第一个告警是否要包含 #include ???

第二个告警是否要强制转换??? string = (char *)php_format_date(format, strlen(format), expire, 1 TSRMLS_CC);

springleng commented 7 years ago

修改后php7.1.5 nts 和 php 5.4.16 nts不告警了

liexusong commented 7 years ago

谢谢告知