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:
@@ -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));
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user