1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

SimpleXML: Use RETURN_STRINGL_FAST() for key() (#20127)

We do the same for getName() because names are often one char.
This commit is contained in:
Niels Dossche
2025-10-11 10:46:33 +02:00
committed by GitHub
parent 106079a462
commit 890021e2be

View File

@@ -2028,7 +2028,7 @@ PHP_METHOD(SimpleXMLElement, key)
}
curnode = intern->node->node;
RETURN_STRINGL((char*)curnode->name, xmlStrlen(curnode->name));
RETURN_STRINGL_FAST((char*)curnode->name, xmlStrlen(curnode->name));
}
/* }}} */