@@ -155,7 +155,7 @@ static HashTable* php_phongo_serverapi_get_properties_hash(phongo_compat_object_
155
155
PHONGO_GET_PROPERTY_HASH_INIT_PROPS (is_debug , intern , props , 1 );
156
156
157
157
ZVAL_STRING (& version , mongoc_server_api_version_to_string (mongoc_server_api_get_version (intern -> server_api )));
158
- zend_hash_str_add (props , ZEND_STRL ("version" ), & version );
158
+ zend_hash_str_add (props , "version" , sizeof ("version" ) - 1 , & version );
159
159
160
160
is_set = mongoc_optional_is_set (mongoc_server_api_get_strict (intern -> server_api ));
161
161
if (is_set ) {
@@ -165,7 +165,7 @@ static HashTable* php_phongo_serverapi_get_properties_hash(phongo_compat_object_
165
165
}
166
166
167
167
if (include_null || is_set ) {
168
- zend_hash_str_add (props , ZEND_STRL ("strict" ), & strict );
168
+ zend_hash_str_add (props , "strict" , sizeof ("strict" ) - 1 , & strict );
169
169
}
170
170
171
171
is_set = mongoc_optional_is_set (mongoc_server_api_get_deprecation_errors (intern -> server_api ));
@@ -176,7 +176,7 @@ static HashTable* php_phongo_serverapi_get_properties_hash(phongo_compat_object_
176
176
}
177
177
178
178
if (include_null || is_set ) {
179
- zend_hash_str_add (props , ZEND_STRL ("deprecationErrors" ), & deprecation_errors );
179
+ zend_hash_str_add (props , "deprecationErrors" , sizeof ("deprecationErrors" ) - 1 , & deprecation_errors );
180
180
}
181
181
182
182
return props ;
0 commit comments