• Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      phongo no longer compiles on 5.4 or earlier.

      /Users/bjori/Source/phongo/src/MongoDB/Cursor.c:249:92: error: too few arguments to function call, expected 4, have 2

      /Users/bjori/Source/phongo/src/MongoDB/Cursor.c:434:25: warning: incompatible pointer types passing 'HashTable **' (aka 'struct _hashtable **') to parameter of type 'HashTable *'
      (aka 'struct _hashtable *'); remove & [-Wincompatible-pointer-types]
      object_properties_init(&intern->std, class_type);
      ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
      ./php_compat_53.h:11:18: note: expanded from macro 'object_properties_init'
      zend_hash_copy(_std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *));
      ^
      /usr/local/p/versions/5.3.27/include/php/Zend/zend_hash.h:214:41: note: passing argument to parameter 'target' here
      ZEND_API void zend_hash_copy(HashTable *target, HashTable *source, copy_ctor_func_t pCopyConstructor, void *tmp, uint size);

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: