Menu

#7 VC6 compile error(用VC6编译时不能通过)

open
nobody
None
5
2007-11-22
2007-11-22
Anonymous
No

用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

Discussion

  • epzh

    epzh - 2010-01-19

    modify
    org_compile_file(file_handle, type);
    to
    org_compile_file(file_handle, type TSRMLS_CC);

     
  • epzh

    epzh - 2010-01-19

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.