php_phongo_write_concern_to_zval uses invalid type for 32-bit platform

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 1.11.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The following build warning was observed in this AppVeyor build:

      [00:00:31] php_phongo.c
      [00:00:32] C:\projects\mongodb\php_phongo.c(1376): warning C4047: 'function': 'zval *' differs in levels of indirection from 'zval **'
      [00:00:32] C:\projects\mongodb\php_phongo.c(1376): warning C4024: 'add_assoc_zval_ex': different types for formal and actual parameter 1
      

      This can be addressed by removing the ampersand operator in:

      ADD_ASSOC_INT64_AS_STRING(&retval, "wtimeout", wtimeout);
      

      retval is already a zval*.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: