Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1983

php_phongo_write_concern_to_zval uses invalid type for 32-bit platform

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.11.0
    • Affects Version/s: None
    • Component/s: 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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: