Skip to content

Commit 5e00917

Browse files
committed
Update php_encoding.c
1 parent c49b8a5 commit 5e00917

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/soap/php_encoding.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ static encodePtr find_encoder_by_type_name(sdlPtr sdl, const char *type)
255255

256256
if (sdl && sdl->encoders) {
257257
encodePtr enc;
258+
size_t type_len = strlen(type);
258259

259260
ZEND_HASH_FOREACH_PTR(sdl->encoders, enc) {
260261
if (type[0] == '{') {
261-
size_t type_len = strlen(type);
262262
if (enc->details.clark_notation
263263
&& zend_string_equals_cstr(enc->details.clark_notation, type, type_len)) {
264264
return enc;

0 commit comments

Comments
 (0)