File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ throw_invalid_argument(zval *object,
325
325
if (cls_name ) {
326
326
zend_throw_exception_ex (php_driver_invalid_argument_exception_ce , 0 TSRMLS_CC ,
327
327
"%s must be %s, an instance of %.*s given" ,
328
- object_name , expected_type , cls_len , cls_name );
328
+ object_name , expected_type , ( int ) cls_len , cls_name );
329
329
#if PHP_MAJOR_VERSION >= 7
330
330
zend_string_release (str );
331
331
#else
@@ -367,7 +367,11 @@ PHP_INI_MH(OnUpdateLogLevel)
367
367
} else {
368
368
php_error_docref (NULL TSRMLS_CC , E_NOTICE ,
369
369
PHP_DRIVER_NAME " | Unknown log level '%s', using 'ERROR'" ,
370
+ #if PHP_MAJOR_VERSION >= 7
371
+ ZSTR_VAL (new_value ));
372
+ #else
370
373
new_value );
374
+ #endif
371
375
cass_log_set_level (CASS_LOG_ERROR );
372
376
}
373
377
}
You can’t perform that action at this time.
0 commit comments