Uploaded image for project: 'PHP Legacy Driver'
  1. PHP Legacy Driver
  2. PHP-1472

Couldn't install on PHP 7.0 RC1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: 1.6.10
    • Fix Version/s: None
    • Component/s: pecl-mongo
    • Labels:
      None
    • Environment:
      Ubuntu 14.04, PHP 7.0.0 RC1
    • # Replies:
      1
    • Last comment by Customer:
      true

      Description

      root@server:/opt/php-7.0.0/etc/php-fpm.d# pecl install mongo
      downloading mongo-1.6.10.tgz ...
      Starting to download mongo-1.6.10.tgz (209,087 bytes)
      .............................................done: 209,087 bytes

      Warning: Declaration of PEAR_Builder::log($level, $msg) should be compatible with PEAR_Common::log($level, $msg, $append_crlf = true) in PEAR/Builder.php on line 488

      Warning: Declaration of PEAR_Builder::log($level, $msg) should be compatible with PEAR_Common::log($level, $msg, $append_crlf = true) in /opt/php-7.0.0/lib/php/PEAR/Builder.php on line 488
      118 source files, building
      running: phpize
      Configuring for:
      PHP Api Version: 20131218
      Zend Module Api No: 20141001
      Zend Extension Api No: 320140815

      ...

      /tmp/pear/temp/mongo/php_mongo.c:717:4: warning: passing argument 1 of ‘convert_to_long’ from incompatible pointer type [enabled by default]
      convert_to_long_ex(code_z);
      ^
      In file included from /opt/php-7.0.0/include/php/Zend/zend.h:339:0,
      from /opt/php-7.0.0/include/php/main/php.h:35,
      from /tmp/pear/temp/mongo/php_mongo.c:16:
      /opt/php-7.0.0/include/php/Zend/zend_operators.h:243:29: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
      ZEND_API void ZEND_FASTCALL convert_to_long(zval *op);
      ^
      /tmp/pear/temp/mongo/php_mongo.c:724:4: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [enabled by default]
      zend_hash_find(Z_ARRVAL_P(document), "wnote", strlen("wnote") + 1, (void**) &wnote_z) == SUCCESS &&
      ^
      In file included from /opt/php-7.0.0/include/php/Zend/zend.h:36:0,
      from /opt/php-7.0.0/include/php/main/php.h:35,
      from /tmp/pear/temp/mongo/php_mongo.c:16:
      /opt/php-7.0.0/include/php/Zend/zend_hash.h:152:30: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
      ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
      ^
      /tmp/pear/temp/mongo/php_mongo.c:724:4: error: too many arguments to function ‘zend_hash_find’
      zend_hash_find(Z_ARRVAL_P(document), "wnote", strlen("wnote") + 1, (void**) &wnote_z) == SUCCESS &&
      ^
      In file included from /opt/php-7.0.0/include/php/Zend/zend.h:36:0,
      from /opt/php-7.0.0/include/php/main/php.h:35,
      from /tmp/pear/temp/mongo/php_mongo.c:16:
      /opt/php-7.0.0/include/php/Zend/zend_hash.h:152:30: note: declared here
      ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
      ^
      /tmp/pear/temp/mongo/php_mongo.c:736:3: error: too many arguments to function ‘zend_hash_copy’
      zend_hash_copy(Z_ARRVAL_P(error_doc), Z_ARRVAL_P(document), (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *));
      ^
      In file included from /opt/php-7.0.0/include/php/Zend/zend.h:36:0,
      from /opt/php-7.0.0/include/php/main/php.h:35,
      from /tmp/pear/temp/mongo/php_mongo.c:16:
      /opt/php-7.0.0/include/php/Zend/zend_hash.h:193:30: note: declared here
      ZEND_API void ZEND_FASTCALL zend_hash_copy(HashTable *target, HashTable *source, copy_ctor_func_t pCopyConstructor);
      ^
      /tmp/pear/temp/mongo/php_mongo.c:738:3: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [enabled by default]
      zval_ptr_dtor(&error_doc);
      ^
      In file included from /opt/php-7.0.0/include/php/Zend/zend.h:39:0,
      from /opt/php-7.0.0/include/php/main/php.h:35,
      from /tmp/pear/temp/mongo/php_mongo.c:16:
      /opt/php-7.0.0/include/php/Zend/zend_variables.h:111:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
      ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
      ^
      make: *** [php_mongo.lo] Error 1
      ERROR: `make' failed

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  4 years, 22 weeks, 6 days ago
                  Date of 1st Reply: