Skip to content

Commit c49b8a5

Browse files
committed
Update php_encoding.c
1 parent a4db4b2 commit c49b8a5

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
@@ -252,13 +252,13 @@ void whiteSpace_collapse(xmlChar* str)
252252

253253
static encodePtr find_encoder_by_type_name(sdlPtr sdl, const char *type)
254254
{
255-
size_t type_len = strlen(type);
256255

257256
if (sdl && sdl->encoders) {
258257
encodePtr enc;
259258

260259
ZEND_HASH_FOREACH_PTR(sdl->encoders, enc) {
261260
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)