We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5905857 commit 27205bdCopy full SHA for 27205bd
ext/dom/attr.c
@@ -193,22 +193,12 @@ Since: DOM Level 3
193
*/
194
PHP_METHOD(DOMAttr, isId)
195
{
196
- zval *id;
197
dom_object *intern;
198
xmlAttrPtr attrp;
199
200
- id = ZEND_THIS;
201
- if (zend_parse_parameters_none() == FAILURE) {
202
- RETURN_THROWS();
203
- }
204
-
205
- DOM_GET_OBJ(attrp, id, xmlAttrPtr, intern);
206
207
- if (attrp->atype == XML_ATTRIBUTE_ID) {
208
- RETURN_TRUE;
209
- } else {
210
- RETURN_FALSE;
211
+ ZEND_PARSE_PARAMETERS_NONE();
+ DOM_GET_OBJ(attrp, ZEND_THIS, xmlAttrPtr, intern);
+ RETURN_BOOL(attrp->atype == XML_ATTRIBUTE_ID);
212
}
213
/* }}} end dom_attr_is_id */
214
0 commit comments