Skip to content

Commit

Permalink
fix bug #55285 XMLReader::getAttribute/No/Ns methods inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
m6w6 committed Oct 3, 2013
1 parent 2a1bd12 commit c7b1d76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ PHP NEWS
. Implemented FR #65634 (HTTP wrapper is very slow with protocol_version
1.1). (Adam)

- XMLReader:
. Fixed bug #55285 (XMLReader::getAttribute/No/Ns methods inconsistency).
(Mike)

<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>
4 changes: 4 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ PHP X.Y UPGRADE NOTES
CURLOPT_SAFE_UPLOAD is now turned on by default and uploads with @file
do not work unless it is explicitly set to false.

- XMLReader:
XMLReader::getAttributeNs and XMLReader::getAttributeNo now return NULL if
the attribute could not be found, just like XMLReader::getAttribute.

========================================
5. New Functions
========================================
Expand Down
6 changes: 0 additions & 6 deletions ext/xmlreader/php_xmlreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,6 @@ PHP_METHOD(xmlreader, getAttributeNo)
if (retchar) {
RETVAL_STRING(retchar, 1);
xmlFree(retchar);
return;
} else {
RETURN_EMPTY_STRING();
}
}
/* }}} */
Expand Down Expand Up @@ -622,9 +619,6 @@ PHP_METHOD(xmlreader, getAttributeNs)
if (retchar) {
RETVAL_STRING(retchar, 1);
xmlFree(retchar);
return;
} else {
RETURN_EMPTY_STRING();
}
}
/* }}} */
Expand Down

0 comments on commit c7b1d76

Please sign in to comment.