Skip to content

Commit b5f8c34

Browse files
committed
PHPC-181: Discard const qualifiers for PHP API
1 parent 00f2da7 commit b5f8c34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

php_phongo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,9 +1066,9 @@ void php_phongo_write_concern_to_zval(zval *retval, const mongoc_write_concern_t
10661066
array_init_size(retval, 5);
10671067

10681068
if (wtag) {
1069-
add_assoc_string_ex(retval, ZEND_STRS("w"), wtag, 1);
1069+
add_assoc_string_ex(retval, ZEND_STRS("w"), (char *)wtag, 1);
10701070
} else if (mongoc_write_concern_get_wmajority(write_concern)) {
1071-
add_assoc_string_ex(retval, ZEND_STRS("w"), "majority", 1);
1071+
add_assoc_string_ex(retval, ZEND_STRS("w"), (char *)"majority", 1);
10721072
} else if (w != MONGOC_WRITE_CONCERN_W_DEFAULT) {
10731073
add_assoc_long_ex(retval, ZEND_STRS("w"), w);
10741074
}
@@ -1559,7 +1559,7 @@ void _phongo_debug_bson(bson_t *bson)
15591559

15601560
/* {{{ INI entries */
15611561
PHP_INI_BEGIN()
1562-
STD_PHP_INI_ENTRY("phongo.debug_log", (char *)"", PHP_INI_ALL, OnUpdateString, debug_log, zend_phongo_globals, phongo_globals)
1562+
STD_PHP_INI_ENTRY((char *)"phongo.debug_log", (char *)"", PHP_INI_ALL, OnUpdateString, debug_log, zend_phongo_globals, phongo_globals)
15631563
PHP_INI_END()
15641564
/* }}} */
15651565

0 commit comments

Comments
 (0)