https://pecl.php.net/package/mongo
1.显示 This package has been superseded, but is still maintained for bugs and security fixes. 这个包被取代了,那么新的是什么?
2.编译安装的时候,前面没问题,make && make install 时候报错,谷歌不出来,不知道为啥,然后使用
pecl install mongodb
安装好了。错误如下:
/data/installed/mongo-php-driver-legacy/php_mongo.h:197:1: error: unknown type name 'zend_object_value'
zend_object_value php_mongo_type_object_new(zend_class_entry *class_type TSRMLS_DC);
^
/data/installed/mongo-php-driver-legacy/php_mongo.h:201:1: error: unknown type name 'zend_literal'
void mongo_write_property(zval *object, zval *member, zval *value, const zend_literal *key TSRMLS_DC);
^
/data/installed/mongo-php-driver-legacy/php_mongo.h:207:1: error: unknown type name 'zend_literal'
zval *mongo_read_property(zval *object, zval *member, int type, const zend_literal *key TSRMLS_DC);
^
In file included from /data/installed/mongo-php-driver-legacy/php_mongo.c:24:0:
/data/installed/mongo-php-driver-legacy/mongoclient.h:19:1: error: unknown type name 'zend_object_value'
zend_object_value php_mongoclient_new(zend_class_entry *class_type TSRMLS_DC);
^
In file included from /data/installed/mongo-php-driver-legacy/php_mongo.c:43:0:
/data/installed/mongo-php-driver-legacy/types/id.h:19:52: error: unknown type name 'zend_uint'
int php_mongo_id_serialize(zval*, unsigned char**, zend_uint*, zend_serialize_data* TSRMLS_DC);
1
revlis7 2018-09-27 14:27:32 +08:00
|
2
mentalidade OP @revlis7 #1 谢谢
|