VC6 compile error(用VC6编译时不能通过)
Brought to you by:
kuni_pm9
用VC6编译时不能通过,出现下面的错误,不知道怎么调整
\php_screw.c(59) : error C2491: 'pm9screw_compile_file' : definition of dllimport function not allowed
\php_screw.c(79) : error C2198: 'org_compile_file' : too few actual parameters
\php_screw.c(85) : error C2198: 'org_compile_file' : too few actual parameters
\php_screw.c(94) : error C2198: 'org_compile_file' : too few actual parameters
modify
org_compile_file(file_handle, type);
to
org_compile_file(file_handle, type TSRMLS_CC);
new window bug
if (file_handle->type == ZEND_HANDLE_FP) fclose(file_handle->handle.fp);
if (file_handle->type == ZEND_HANDLE_FD) close(file_handle->handle.fd);
will crack php engin
suggest use zend_memstream replate tmpfile
in window tmpfile will failed