Compile Warnings with PHP7.3
PHP-225
Too many open connections in php-fpm
PHP-215
pecl install fails on debian jessy
PHP-194
Cannot query in Keyspace with Uppercase characters
PHP-224
Fix RPM spec cpp-driver dependencies
PHP-222
PHP quick start example shouldn't use schema tables
PHP-220
Same timeuuid when creating it from timestamp for same timestamp
PHP-218
PHP driver fails with fatal error when printing Decimal object with negative scale attribute
PHP-214
Remove reserved words from class names and functions, etc.
PHP-212
Require the local datacenter when contact points are specified
PHP-209
Support async queries with loop/promise implementations
PHP-208
Update build.yaml to include a connection test
PHP-204
Automate php-driver builds via adding a build.yaml and setting up jobs on jenkins.devtools
PHP-203
Update DSE README to contain relevant information from OSS
PHP-200
Investigate making all links work in both GitHub markup and DS docs
PHP-199
Support initializing TimeUuid from uuid string
PHP-197
Build the php driver for Ubuntu 16.04 with libuv1 as a dependency
PHP-193
type method on PHP classes should be static
PHP-175
Replace strlen(CONST) with sizeof(CONST) - 1 in C code
PHP-173
Building from source on FreeBSD 10.3
PHP-171
Add PHP's DateInterval support to duration
PHP-169
Add static linking support for the cpp-driver[-dse] to config.m4
PHP-165
Make cluster builder errors more descriptive
PHP-162
Check cpp-driver version on startup
PHP-156
Add a __toString() method to Cassandra\SimpleStatement
PHP-140
Send keyspace in QUERY, PREPARE, and BATCH messages in v5
PHP-123
Add 'isFrozen' to Cassandra\Type (deprecate Cassandra\Column's method)
PHP-96
Add properties to metadata types (keyspace, table, column, etc.)
PHP-95
Rows object doesn't implement the __tostring() method
PHP-85
Building from source error on os x el Capitan 10.11.3 xcode 7.2.1
PHP-78
seeds TCP connections
PHP-69
Expose whitelist load balancing policy
PHP-65
Add milliseconds to timeuuid
PHP-52
Provide an all-included deb distribution
PHP-51
Expose API for parallel execution
PHP-50
"All connections on all I/O threads are busy" when using using a unknown keyspace
PHP-35
Persistent connections prevent php fpm worker respawning
PHP-28
Update Windows automated build script for PHP 7.2+
PHP-226
DefaultSession option parameters incorrectly documented
PHP-223
Update CI builds to build the driver extension statically
PHP-206
Adding documentation for binary installations
PHP-202
Fix comment casing in yaml documentation
PHP-186
Set and Map unit tests should add more than one value
PHP-176
Replace ifdef's for emitting 64-bit values
PHP-157
Numeric string parsing for int types should allow for decimals
PHP-150
Add serialization support for values
PHP-90
Remove support for PHP < v5.5 in source
PHP-76
Abbreviate timezone output when logging on Windows
PHP-71
Provide version information from the php driver
PHP-68
Mark Downgrading Consistency Retry Policy as deprecated
PHP-219
issue 1 of 52

Compile Warnings with PHP7.3

Description

Compile Warnings.
After compilation, testing and installing the extension everything seems fine. We don't what will happend because of these warnings.

PHP 7.3.1-3+0~20190205120933.29+stretch~1.gbp1b8bf8 (cli) (built: Feb 5 2019 12:09:34) ( NTS )

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 In file included from /usr/src/cassandra-1.3.2/src/Duration.c:1:0: /usr/src/cassandra-1.3.2/src/Duration.c: In function ‘to_string’: ./php_driver.h:42:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘cass_int64_t {aka long int}’ [-Wformat=] # define LL_FORMAT "%lld" ^ /usr/src/cassandra-1.3.2/src/Duration.c:21:24: note: in expansion of macro ‘LL_FORMAT’ spprintf(&string, 0, LL_FORMAT, value); ^~~~~~~~~ /usr/src/cassandra-1.3.2/src/Duration.c: In function ‘get_param’: /usr/src/cassandra-1.3.2/src/Duration.c:37:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘cass_int64_t {aka long int}’ [-Wformat=] "%s must be between " LL_FORMAT " and " LL_FORMAT ", " LL_FORMAT " given", ^~~~~~~~~~~~~~~~~~~~~ /usr/src/cassandra-1.3.2/src/Duration.c:37:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘cass_int64_t {aka long int}’ [-Wformat=] /usr/src/cassandra-1.3.2/src/Duration.c:37:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 7 has type ‘php5to7_long {aka long int}’ [-Wformat=] /usr/src/cassandra-1.3.2/src/Duration.c:48:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘cass_int64_t {aka long int}’ [-Wformat=] "%s must be between " LL_FORMAT " and " LL_FORMAT ", %g given", ^~~~~~~~~~~~~~~~~~~~~ /usr/src/cassandra-1.3.2/src/Duration.c:48:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘cass_int64_t {aka long int}’ [-Wformat=] /usr/src/cassandra-1.3.2/src/Duration.c:61:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘cass_int64_t {aka long int}’ [-Wformat=] "%s must be between " LL_FORMAT " and " LL_FORMAT ", " LL_FORMAT " given", ^~~~~~~~~~~~~~~~~~~~~ /usr/src/cassandra-1.3.2/src/Duration.c:61:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘cass_int64_t {aka long int}’ [-Wformat=] /usr/src/cassandra-1.3.2/src/Duration.c:61:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 7 has type ‘cass_int64_t {aka long int}’ [-Wformat=] /usr/src/cassandra-1.3.2/src/Duration.c:73:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘cass_int64_t {aka long int}’ [-Wformat=] "%s must be between " LL_FORMAT " and " LL_FORMAT ", " LL_FORMAT " given", ^~~~~~~~~~~~~~~~~~~~~ /usr/src/cassandra-1.3.2/src/Duration.c:73:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘cass_int64_t {aka long int}’ [-Wformat=] /usr/src/cassandra-1.3.2/src/Duration.c:73:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 7 has type ‘cass_int64_t {aka long int}’ [-Wformat=] /usr/src/cassandra-1.3.2/src/Duration.c: In function ‘php_driver_duration_to_string’: /usr/src/cassandra-1.3.2/src/Duration.c:107:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 7 has type ‘cass_int64_t {aka long int}’ [-Wformat=] spprintf(&rep, 0, "%s%dmo%dd" LL_FORMAT "ns", is_negative ? "-" : "", final_months, final_days, final_nanos); ^~~~~~~~~~~ /usr/src/cassandra-1.3.2/src/Decimal.c: In function ‘from_double’: /usr/src/cassandra-1.3.2/src/Decimal.c:119:29: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘cass_int64_t {aka long int}’ [-Wformat=] sprintf(mantissa_str, "%lld", mantissa); ^ /usr/src/cassandra-1.3.2/src/Date.c: In function ‘zim_Date_toDateTime’: /usr/src/cassandra-1.3.2/src/Date.c:106:35: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘cass_int64_t {aka long int}’ [-Wformat=] str_len = spprintf(&str, 0, "%lld", ^ In file included from /usr/src/cassandra-1.3.2/src/Date.c:17:0: /usr/src/cassandra-1.3.2/src/Date.c: In function ‘zim_Date___toString’: ./php_driver.h:66:30: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘cass_int64_t {aka long int}’ [-Wformat=] #define PHP_DRIVER_NAMESPACE "Cassandra" ^ /usr/src/cassandra-1.3.2/src/Date.c:157:21: note: in expansion of macro ‘PHP_DRIVER_NAMESPACE’ spprintf(&ret, 0, PHP_DRIVER_NAMESPACE "\\Date(seconds=%lld)", cass_date_time_to_epoch(self->date, 0)); ^~~~~~~~~~~~~~~~~~~~ /bin/bash /usr/src/cassandra-1.3.2/libtool --mode=compile cc -Wall -Wextra -Wno-long-long -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-result -Wno-variadic-macros -Wno-extra-semi -pthread -I. -I/usr/src/cassandra-1.3.2 -DPHP_ATOM_INC -I/usr/src/cassandra-1.3.2/include -I/usr/src/cassandra-1.3.2/main -I/usr/src/cassandra-1.3.2 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/src/cassandra-1.3.2/src/FuturePreparedStatement.c -o src/FuturePreparedStatement.lo /usr/src/cassandra-1.3.2/src/Bigint.c: In function ‘php_driver_bigint_init’: /usr/src/cassandra-1.3.2/src/Bigint.c:88:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘long int’ [-Wformat=] "value must be between " LL_FORMAT " and " LL_FORMAT ", %g given", ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/cassandra-1.3.2/src/Bigint.c:88:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘long int’ [-Wformat=] /bin/bash /usr/src/cassandra-1.3.2/libtool --mode=compile cc -Wall -Wextra -Wno-long-long -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-result -Wno-variadic-macros -Wno-extra-semi -pthread -I. -I/usr/src/cassandra-1.3.2 -DPHP_ATOM_INC -I/usr/src/cassandra-1.3.2/include -I/usr/src/cassandra-1.3.2/main -I/usr/src/cassandra-1.3.2 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/src/cassandra-1.3.2/src/FutureRows.c -o src/FutureRows.lo /bin/bash /usr/src/cassandra-1.3.2/libtool --mode=compile cc -Wall -Wextra -Wno-long-long -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-result -Wno-variadic-macros -Wno-extra-semi -pthread -I. -I/usr/src/cassandra-1.3.2 -DPHP_ATOM_INC -I/usr/src/cassandra-1.3.2/include -I/usr/src/cassandra-1.3.2/main -I/usr/src/cassandra-1.3.2 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/src/cassandra-1.3.2/src/FutureSession.c -o src/FutureSession.lo /bin/bash /usr/src/cassandra-1.3.2/libtool --mode=compile cc -Wall -Wextra -Wno-long-long -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-result -Wno-variadic-macros -Wno-extra-semi -pthread -I. -I/usr/src/cassandra-1.3.2 -DPHP_ATOM_INC -I/usr/src/cassandra-1.3.2/include -I/usr/src/cassandra-1.3.2/main -I/usr/src/cassandra-1.3.2 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/src/cassandra-1.3.2/src/FutureValue.c -o src/FutureValue.lo /bin/bash /usr/src/cassandra-1.3.2/libtool --mode=compile cc -Wall -Wextra -Wno-long-long -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-result -Wno-variadic-macros -Wno-extra-semi -pthread -I. -I/usr/src/cassandra-1.3.2 -DPHP_ATOM_INC -I/usr/src/cassandra-1.3.2/include -I/usr/src/cassandra-1.3.2/main -I/usr/src/cassandra-1.3.2 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/src/cassandra-1.3.2/src/Index.c -o src/Index.lo /usr/src/cassandra-1.3.2/php_driver.c: In function ‘throw_invalid_argument’: /usr/src/cassandra-1.3.2/php_driver.c:327:64: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=] "%s must be %s, an instance of %.*s given", ^ /usr/src/cassandra-1.3.2/php_driver.c:341:48: warning: unknown conversion type character ‘'’ in format [-Wformat=] "%s must be %s, '%Z' given", ^ /usr/src/cassandra-1.3.2/php_driver.c:341:29: warning: too many arguments for format [-Wformat-extra-args] "%s must be %s, '%Z' given", ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/cassandra-1.3.2/php_driver.c:345:47: warning: unknown conversion type character 0x20 in format [-Wformat=] "%s must be %s, %Z given", ^ /usr/src/cassandra-1.3.2/php_driver.c:345:29: warning: too many arguments for format [-Wformat-extra-args] "%s must be %s, %Z given", ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/src/cassandra-1.3.2/php_driver.h:56:0, from /usr/src/cassandra-1.3.2/php_driver.c:17: /usr/src/cassandra-1.3.2/php_driver.c: In function ‘OnUpdateLogLevel’: /usr/src/cassandra-1.3.2/version.h:5:33: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘zend_string * {aka struct _zend_string *}’ [-Wformat=] #define PHP_DRIVER_NAME "cassandra" ^ /usr/src/cassandra-1.3.2/php_driver.c:369:24: note: in expansion of macro ‘PHP_DRIVER_NAME’ PHP_DRIVER_NAME " | Unknown log level '%s', using 'ERROR'", ^~~~~~~~~~~~~~~

...

1 2 /usr/src/cassandra-1.3.2/src/Date.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-extra-semi’

...

1 2 /usr/src/cassandra-1.3.2/src/Duration.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-extra-semi’

...

1 2 /usr/src/cassandra-1.3.2/src/Bigint.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-extra-semi’

...

1 2 /usr/src/cassandra-1.3.2/php_driver.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-extra-semi’

...

1 2 /usr/src/cassandra-1.3.2/src/Decimal.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-extra-semi’

...

1 2 3 4 5 6 7 /usr/src/cassandra-1.3.2/src/Timeuuid.c: In function ‘php_driver_timeuuid_init’: /usr/src/cassandra-1.3.2/src/Timeuuid.c:53:130: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘zend_long {aka long int}’ [-Wformat=] zend_throw_exception_ex(php_driver_invalid_argument_exception_ce, 0 TSRMLS_CC, "Timestamp must be a positive integer, %d given", Z_LVAL_P(param)); ^ /usr/src/cassandra-1.3.2/src/Timeuuid.c:60:108: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=] zend_throw_exception_ex(php_driver_invalid_argument_exception_ce, 0 TSRMLS_CC, "Invalid UUID: '%.*s'", Z_STRLEN_P(param), Z_STRVAL_P(param)); ^

...

1 2 3 4 /usr/src/cassandra-1.3.2/src/Uuid.c: In function ‘php_driver_uuid_init’: /usr/src/cassandra-1.3.2/src/Uuid.c:48:49: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 4 has type ‘php5to7_size {aka long unsigned int}’ [-Wformat=] "Invalid UUID: '%.*s'", value_len, value); ^

...

1 2 /usr/src/cassandra-1.3.2/src/Timeuuid.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-extra-semi’

...

1 2 /usr/src/cassandra-1.3.2/src/Uuid.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-extra-semi’

...

1 2 3 4 5 6 7 /usr/src/cassandra-1.3.2/util/math.c: In function ‘php_driver_parse_bigint’: /usr/src/cassandra-1.3.2/util/math.c:201:7: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘long int’ [-Wformat=] "value must be between " LL_FORMAT " and " LL_FORMAT ", %s given", INT64_MIN, INT64_MAX, in); ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/cassandra-1.3.2/util/math.c:201:7: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘long int’ [-Wformat=] /usr/src/cassandra-1.3.2/util/math.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-extra-semi’

Environment

Debian 9.7
Cassandra-1.3.2

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Tim Kroener

Labels

None

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Affects versions

1.3.2

Priority

Critical