Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3844

thrift_protocol cannot compile in 7.0.7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • PHP - Library
    • None
    • PHP 7.0.7, x86-64, OS-X 10.11

    Description

      When compile thrift_protocol extension with php7.0.7 in OS X 10.11,

      Report error:

      php_thrift_protocol7.cpp:290:27: error: no member named 'min' in namespace 'std'; did you mean 'fmin'?

      and

      zend_hash.h:168:30: note: candidate function not viable: no known conversion from 'unsigned long *' to 'zend_ulong *' (aka 'unsigned long long *') for 3rd argument
      ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);

      And I find someone in github solved this problom, but no one notice it, so I create this issue

      Attachments

        Issue Links

          Activity

            People

              Robert Lu Robert Lu
              Robert Lu Robert Lu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: