Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you modify it so it has support for PHP 7? #1

Open
jfha73 opened this issue Jul 23, 2015 · 1 comment
Open

Can you modify it so it has support for PHP 7? #1

jfha73 opened this issue Jul 23, 2015 · 1 comment

Comments

@jfha73
Copy link

jfha73 commented Jul 23, 2015

I tried to compile it from your sources but it doesn't compile.

Thanks.

@jfha73
Copy link
Author

jfha73 commented Sep 8, 2015

Any ideas when this is going to happen, PHP7 is in RC2 already and I'm still getting lots of these:

..\pecl\mongo-php-driver-master\io_stream.c(345): warning C4047: 'function': 'zval ' differs in levels of indirection from 'zval *'
..\pecl\mongo-php-driver-master\io_stream.c(345): warning C4024: 'zval_ptr_dtor': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\io_stream.c(349): warning C4133: 'function': incompatible types - from 'char [4]' to 'zend_string '
..\pecl\mongo-php-driver-master\io_stream.c(349): warning C4020: 'zend_hash_find': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(349): warning C4047: '==': 'zval *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\io_stream.c(350): warning C4047: 'function': 'const zval *' differs in levels of indirection from 'zval *
'
..\pecl\mongo-php-driver-master\io_stream.c(350): warning C4024: 'zval_get_type': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\io_stream.c(350): warning C4047: 'function': 'zval ' differs in levels of indirection from 'zval *'
..\pecl\mongo-php-driver-master\io_stream.c(350): warning C4024: 'convert_to_boolean': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\io_stream.c(353): warning C4047: 'function': 'zval ' differs in levels of indirection from 'zval *'
..\pecl\mongo-php-driver-master\io_stream.c(353): warning C4024: 'zval_ptr_dtor': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\io_stream.c(358): warning C4047: 'function': 'zval ' differs in levels of indirection from 'zval *'
..\pecl\mongo-php-driver-master\io_stream.c(358): warning C4024: 'zval_ptr_dtor': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\io_stream.c(398): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
..\pecl\mongo-php-driver-master\io_stream.c(422): error C2065: 'zend_rsrc_list_entry': undeclared identifier
..\pecl\mongo-php-driver-master\io_stream.c(422): error C2065: 'le': undeclared identifier
..\pecl\mongo-php-driver-master\io_stream.c(422): warning C4552: '
': operator has no effect; expected operator with side-effect
..\pecl\mongo-php-driver-master\io_stream.c(427): warning C4133: 'function': incompatible types - from 'char *' to 'zend_string *'
..\pecl\mongo-php-driver-master\io_stream.c(427): warning C4020: 'zend_hash_find': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(427): error C2065: 'le': undeclared identifier
..\pecl\mongo-php-driver-master\io_stream.c(427): warning C4047: '==': 'zval *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\io_stream.c(429): warning C4133: 'function': incompatible types - from 'char *' to 'zend_string *'
..\pecl\mongo-php-driver-master\io_stream.c(429): warning C4020: 'zend_hash_del': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(685): warning C4020: 'php_base64_decode': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(685): warning C4133: '=': incompatible types - from 'zend_string *' to 'unsigned char *'
..\pecl\mongo-php-driver-master\io_stream.c(688): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
..\pecl\mongo-php-driver-master\io_stream.c(692): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
..\pecl\mongo-php-driver-master\io_stream.c(701): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
..\pecl\mongo-php-driver-master\io_stream.c(712): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
..\pecl\mongo-php-driver-master\io_stream.c(718): warning C4020: 'php_base64_encode': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(766): warning C4020: 'php_str_to_str': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(766): warning C4133: '=': incompatible types - from 'zend_string *' to 'char *'
..\pecl\mongo-php-driver-master\io_stream.c(767): warning C4020: 'php_str_to_str': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(767): warning C4133: '=': incompatible types - from 'zend_string *' to 'char *'
..\pecl\mongo-php-driver-master\mongoclient.c(26): fatal error C1083: Cannot open include file: 'ext/standard/php_smart_str.h': No such file or directory
..\pecl\mongo-php-driver-master\io_stream.c(785): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
..\pecl\mongo-php-driver-master\io_stream.c(786): warning C4020: 'php_base64_encode': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(811): warning C4020: 'php_base64_decode': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(842): warning C4244: '=': conversion from '__int64' to 'int', possible loss of data
..\pecl\mongo-php-driver-master\io_stream.c(845): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
..\pecl\mongo-php-driver-master\io_stream.c(893): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
..\pecl\mongo-php-driver-master\io_stream.c(897): warning C4020: 'php_base64_encode': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(908): warning C4020: 'php_base64_decode': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(909): warning C4020: 'php_base64_encode': too many actual parameters
..\pecl\mongo-php-driver-master\io_stream.c(909): warning C4133: '=': incompatible types - from 'zend_string *' to 'unsigned char *'
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\php_mongo.h(197): error C2061: syntax error: identifier 'php_mongo_type_object_new' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\php_mongo.h(197): error C2059: syntax error: ';' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\php_mongo.h(197): error C2059: syntax error: '' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\php_mongo.h(201): error C2143: syntax error: missing ')' before '
' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\php_mongo.h(201): error C2143: syntax error: missing '{' before '
' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\php_mongo.h(201): error C2059: syntax error: ')' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\php_mongo.h(207): error C2143: syntax error: missing ')' before '' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\php_mongo.h(207): error C2143: syntax error: missing '{' before '
' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\php_mongo.h(207): error C2059: syntax error: ')' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\mongoclient.h(19): error C2061: syntax error: identifier 'php_mongoclient_new' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\mongoclient.h(19): error C2059: syntax error: ';' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\mongoclient.h(19): error C2059: syntax error: '' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\types/id.h(19): error C2143: syntax error: missing ')' before '' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\types/id.h(19): error C2081: 'zend_uint': name in formal parameter list illegal (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\types/id.h(19): error C2143: syntax error: missing '{' before '
' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\types/id.h(19): error C2059: syntax error: ',' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\types/id.h(19): error C2059: syntax error: ')' (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
d:\php-sdk\php70dev\vc14\x64\pecl\mongo-php-driver-master\types/id.h(20): error C2081: 'zend_uint': name in formal parameter list illegal (compiling source file ..\pecl\mongo-php-driver-master\php_mongo.c)
..\pecl\mongo-php-driver-master\php_mongo.c(127): warning C4133: 'function': incompatible types - from 'zend_string *' to 'const char *'
..\pecl\mongo-php-driver-master\php_mongo.c(127): error C2065: 'new_value_length': undeclared identifier
..\pecl\mongo-php-driver-master\php_mongo.c(127): warning C4133: 'function': incompatible types - from 'long *' to 'zend_long *'
..\pecl\mongo-php-driver-master\php_mongo.c(139): warning C4133: 'function': incompatible types - from 'zend_string *' to 'const char *'
..\pecl\mongo-php-driver-master\php_mongo.c(139): error C2065: 'new_value_length': undeclared identifier
..\pecl\mongo-php-driver-master\php_mongo.c(139): warning C4133: 'function': incompatible types - from 'long *' to 'zend_long *'
..\pecl\mongo-php-driver-master\php_mongo.c(152): warning C4133: 'function': incompatible types - from 'zend_string *' to 'const char *'
..\pecl\mongo-php-driver-master\php_mongo.c(152): error C2065: 'new_value_length': undeclared identifier
..\pecl\mongo-php-driver-master\php_mongo.c(152): warning C4133: 'function': incompatible types - from 'long *' to 'zend_long *'
..\pecl\mongo-php-driver-master\php_mongo.c(236): error C2065: 'mongo_read_property': undeclared identifier
..\pecl\mongo-php-driver-master\php_mongo.c(236): warning C4047: '=': 'zend_object_read_property_t' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(237): error C2065: 'mongo_write_property': undeclared identifier
..\pecl\mongo-php-driver-master\php_mongo.c(237): warning C4047: '=': 'zend_object_write_property_t' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(241): error C2065: 'mongo_write_property': undeclared identifier
..\pecl\mongo-php-driver-master\php_mongo.c(241): warning C4047: '=': 'zend_object_write_property_t' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(246): error C2065: 'mongo_write_property': undeclared identifier
..\pecl\mongo-php-driver-master\php_mongo.c(246): warning C4047: '=': 'zend_object_write_property_t' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(249): warning C4244: 'function': conversion from 'time_t' to 'unsigned int', possible loss of data
..\pecl\mongo-php-driver-master\php_mongo.c(334): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
..\pecl\mongo-php-driver-master\php_mongo.c(481): error C2061: syntax error: identifier 'php_mongo_type_object_new'
..\pecl\mongo-php-driver-master\php_mongo.c(481): error C2059: syntax error: ';'
..\pecl\mongo-php-driver-master\php_mongo.c(481): error C2059: syntax error: ''
..\pecl\mongo-php-driver-master\php_mongo.c(496): warning C4002: too many actual parameters for macro 'zend_hash_get_current_data'
..\pecl\mongo-php-driver-master\php_mongo.c(496): warning C4047: '==': 'zval *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(497): warning C4013: 'Z_TYPE_PP' undefined; assuming extern returning int
..\pecl\mongo-php-driver-master\php_mongo.c(505): warning C4133: 'function': incompatible types - from 'char *' to 'zend_string *'
..\pecl\mongo-php-driver-master\php_mongo.c(505): warning C4133: 'function': incompatible types - from 'uint *' to 'zend_ulong *'
..\pecl\mongo-php-driver-master\php_mongo.c(505): warning C4020: 'zend_hash_get_current_key_ex': too many actual parameters
..\pecl\mongo-php-driver-master\php_mongo.c(511): warning C4013: 'Z_STRVAL_PP' undefined; assuming extern returning int
..\pecl\mongo-php-driver-master\php_mongo.c(511): warning C4047: 'function': 'char *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(511): warning C4024: 'mongo_read_preference_add_tag': different types for formal and actual parameter 3
..\pecl\mongo-php-driver-master\php_mongo.c(538): warning C4013: 'MAKE_STD_ZVAL' undefined; assuming extern returning int
..\pecl\mongo-php-driver-master\php_mongo.c(553): warning C4002: too many actual parameters for macro 'add_assoc_string'
..\pecl\mongo-php-driver-master\php_mongo.c(587): warning C4002: too many actual parameters for macro 'zend_hash_get_current_data'
..\pecl\mongo-php-driver-master\php_mongo.c(587): warning C4047: '==': 'zval *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(658): warning C4133: 'function': incompatible types - from 'char [3]' to 'zend_string *'
..\pecl\mongo-php-driver-master\php_mongo.c(658): warning C4020: 'zend_hash_find': too many actual parameters
..\pecl\mongo-php-driver-master\php_mongo.c(658): warning C4047: '==': 'zval *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(659): warning C4013: 'Z_LVAL_PP' undefined; assuming extern returning int
..\pecl\mongo-php-driver-master\php_mongo.c(659): warning C4013: 'Z_DVAL_PP' undefined; assuming extern returning int
..\pecl\mongo-php-driver-master\php_mongo.c(664): warning C4133: 'function': incompatible types - from 'char [7]' to 'zend_string *'
..\pecl\mongo-php-driver-master\php_mongo.c(664): warning C4020: 'zend_hash_find': too many actual parameters
..\pecl\mongo-php-driver-master\php_mongo.c(664): warning C4047: '==': 'zval *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(665): warning C4047: 'function': 'const zval *' differs in levels of indirection from 'zval *_'
..\pecl\mongo-php-driver-master\php_mongo.c(665): warning C4024: 'zval_get_type': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\php_mongo.c(665): warning C4047: 'function': 'zval ' differs in levels of indirection from 'zval *'
..\pecl\mongo-php-driver-master\php_mongo.c(665): warning C4024: '_convert_to_string': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\php_mongo.c(666): warning C4047: '=': 'char ' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(671): warning C4133: 'function': incompatible types - from 'char [5]' to 'zend_string *'
..\pecl\mongo-php-driver-master\php_mongo.c(671): warning C4020: 'zend_hash_find': too many actual parameters
..\pecl\mongo-php-driver-master\php_mongo.c(671): warning C4047: '==': 'zval *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(672): warning C4047: 'function': 'const zval *' differs in levels of indirection from 'zval *
'
..\pecl\mongo-php-driver-master\php_mongo.c(672): warning C4024: 'zval_get_type': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\php_mongo.c(672): warning C4047: 'function': 'zval ' differs in levels of indirection from 'zval *'
..\pecl\mongo-php-driver-master\php_mongo.c(672): warning C4024: 'convert_to_long': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\php_mongo.c(685): warning C4020: 'zend_hash_copy': too many actual parameters
..\pecl\mongo-php-driver-master\php_mongo.c(687): warning C4047: 'function': 'zval ' differs in levels of indirection from 'zval *'
..\pecl\mongo-php-driver-master\php_mongo.c(687): warning C4024: '_zval_ptr_dtor': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\php_mongo.c(708): warning C4133: 'function': incompatible types - from 'char [4]' to 'zend_string '
..\pecl\mongo-php-driver-master\php_mongo.c(708): warning C4020: 'zend_hash_find': too many actual parameters
..\pecl\mongo-php-driver-master\php_mongo.c(708): warning C4047: '==': 'zval *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(709): warning C4013: 'Z_STRLEN_PP' undefined; assuming extern returning int
..\pecl\mongo-php-driver-master\php_mongo.c(716): warning C4133: 'function': incompatible types - from 'char [5]' to 'zend_string *'
..\pecl\mongo-php-driver-master\php_mongo.c(716): warning C4020: 'zend_hash_find': too many actual parameters
..\pecl\mongo-php-driver-master\php_mongo.c(716): warning C4047: '==': 'zval *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(717): warning C4047: 'function': 'const zval *' differs in levels of indirection from 'zval *
'
..\pecl\mongo-php-driver-master\php_mongo.c(717): warning C4024: 'zval_get_type': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\php_mongo.c(717): warning C4047: 'function': 'zval ' differs in levels of indirection from 'zval *'
..\pecl\mongo-php-driver-master\php_mongo.c(717): warning C4024: 'convert_to_long': different types for formal and actual parameter 1
..\pecl\mongo-php-driver-master\php_mongo.c(724): warning C4133: 'function': incompatible types - from 'char [6]' to 'zend_string '
..\pecl\mongo-php-driver-master\php_mongo.c(724): warning C4020: 'zend_hash_find': too many actual parameters
..\pecl\mongo-php-driver-master\php_mongo.c(724): warning C4047: '==': 'zval *' differs in levels of indirection from 'int'
..\pecl\mongo-php-driver-master\php_mongo.c(736): warning C4020: 'zend_hash_copy': too many actual parameters
..\pecl\mongo-php-driver-master\php_mongo.c(738): warning C4047: 'function': 'zval *' differs in levels of indirection from 'zval *
'
..\pecl\mongo-php-driver-master\php_mongo.c(738): warning C4024: '_zval_ptr_dtor': different types for formal and actual parameter 1
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe"' : return code '0x2'
Stop.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant