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,
325325 if (cls_name ) {
326326 zend_throw_exception_ex (php_driver_invalid_argument_exception_ce , 0 TSRMLS_CC ,
327327 "%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 );
329329#if PHP_MAJOR_VERSION >= 7
330330 zend_string_release (str );
331331#else
@@ -367,7 +367,11 @@ PHP_INI_MH(OnUpdateLogLevel)
367367 } else {
368368 php_error_docref (NULL TSRMLS_CC , E_NOTICE ,
369369 PHP_DRIVER_NAME " | Unknown log level '%s', using 'ERROR'" ,
370+ #if PHP_MAJOR_VERSION >= 7
371+ ZSTR_VAL (new_value ));
372+ #else
370373 new_value );
374+ #endif
371375 cass_log_set_level (CASS_LOG_ERROR );
372376 }
373377 }
You can’t perform that action at this time.
0 commit comments