File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -55,4 +55,8 @@ PHP NEWS
55
55
. Implemented FR #65634 (HTTP wrapper is very slow with protocol_version
56
56
1.1). (Adam)
57
57
58
+ - XMLReader:
59
+ . Fixed bug #55285 (XMLReader::getAttribute/No/Ns methods inconsistency).
60
+ (Mike)
61
+
58
62
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ PHP X.Y UPGRADE NOTES
61
61
CURLOPT_SAFE_UPLOAD is now turned on by default and uploads with @file
62
62
do not work unless it is explicitly set to false.
63
63
64
+ - XMLReader:
65
+ XMLReader::getAttributeNs and XMLReader::getAttributeNo now return NULL if
66
+ the attribute could not be found, just like XMLReader::getAttribute.
67
+
64
68
========================================
65
69
5. New Functions
66
70
========================================
Original file line number Diff line number Diff line change @@ -588,9 +588,6 @@ PHP_METHOD(xmlreader, getAttributeNo)
588
588
if (retchar ) {
589
589
RETVAL_STRING (retchar , 1 );
590
590
xmlFree (retchar );
591
- return ;
592
- } else {
593
- RETURN_EMPTY_STRING ();
594
591
}
595
592
}
596
593
/* }}} */
@@ -622,9 +619,6 @@ PHP_METHOD(xmlreader, getAttributeNs)
622
619
if (retchar ) {
623
620
RETVAL_STRING (retchar , 1 );
624
621
xmlFree (retchar );
625
- return ;
626
- } else {
627
- RETURN_EMPTY_STRING ();
628
622
}
629
623
}
630
624
/* }}} */
You can’t perform that action at this time.
0 commit comments