Results 1 to 6 of 6

Thread: build php_ice 1.1.1 error. proxy.cpp line 183

  1. #1
    damingyipai is offline Registered User
    Join Date
    Jan 2004
    Posts
    59

    build php_ice 1.1.1 error. proxy.cpp line 183

    proxy.cpp line 183:
    _handlers.clone_obj = handleClone;

    _handlers.clone_obj is define to :

    (zend_object_handlers.h line 104)
    typedef struct _zend_object_handlers {
    ...
    zend_object_clone_obj_t clone_obj;
    ...

    but the handleClone is define to :

    zend_object_value handleClone(zval* TSRMLS_DC);

    that is not compatibility with zend_object_clone_obj_t:

    typedef zend_object_value (*zend_object_clone_obj_t)(zval *object TSRMLS_DC);

    I got build error in vs.net 2003.

    Thanks for you see it and help me to fix it.

  2. #2
    damingyipai is offline Registered User
    Join Date
    Jan 2004
    Posts
    59

    why not compatibility?

    ------ 已启动生成: 项目: php_ice, 配置: Release Win32 ------

    正在编译...
    proxy.cpp
    proxy.cpp(185) : error C2440: “=” : 无法从“zend_object_value (__cdecl *)(zval *,void *** )”转换为“zend_object_clone_obj_t”
    UDT 返回值的不兼容调用约定
    communicator.cpp
    communicator.cpp(70) : error C2440: “=” : 无法从“zend_object_value (__cdecl *)(zval *,void *** )”转换为“zend_object_clone_obj_t”
    UDT 返回值的不兼容调用约定
    正在生成代码...

    生成日志保存在“file://e:\Projects\JetRocket\base\IcePhp\IcePHP-1.1.1\src\ice\Release\BuildLog.htm”中
    php_ice - 2 错误,0 警告


    ---------------------- 完成 ---------------------

    生成: 0 已成功, 1 已失败, 0 已跳过

  3. #3
    damingyipai is offline Registered User
    Join Date
    Jan 2004
    Posts
    59

    I got it ! is call type not match !

    modify ice_common.h

    #include "php.h"
    #include "php_ini.h"
    #include "ext/standard/info.h"
    #include "zend_interfaces.h"
    #include "zend_exceptions.h"

    to follow:


    extern "C"
    {
    #include "php.h"
    #include "php_ini.h"
    #include "ext/standard/info.h"
    #include "zend_interfaces.h"
    #include "zend_exceptions.h"
    }

    then build ok!

  4. #4
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    We actually removed the extern "C" wrapper shortly before release in order to satisfy a compiler on a different platform, and neglected to verify that it still compiled on Windows. Thanks for bringing this to our attention, we will fix this for the next release.

    Take care,
    - Mark

  5. #5
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    We've released IcePHP 1.1.2 to fix the Windows compilation error.

    Thanks again,
    - Mark

  6. #6
    damingyipai is offline Registered User
    Join Date
    Jan 2004
    Posts
    59
    I'm glad to hear it ! :-)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 11-04-2009, 10:32 AM
  2. TimeoutException throws at Outgoing.cpp:183
    By Yunqiao Yin in forum Help Center
    Replies: 1
    Last Post: 11-23-2006, 09:32 PM
  3. Replies: 6
    Last Post: 04-11-2004, 09:12 PM
  4. Replies: 1
    Last Post: 11-30-2003, 12:02 PM
  5. AdapterRegistryI.cpp compilation error
    By marlowa in forum Bug Reports
    Replies: 3
    Last Post: 03-13-2003, 08:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •