Re: svn: /php/php-src/ branches/PHP_5_3/ext/simplexml/simplexml.c branches/PHP_5_4/ext/simplexml/simplexml.c trunk/ext/simplexml/simplexml.c
| From: | Felipe Pena | Date: | Wed, 08 Jun 2011 23:57:26 +0000 |
| Subject: | Re: svn: /php/php-src/ branches/PHP_5_3/ext/simplexml/simplexml.c branches/PHP_5_4/ext/simplexml/simplexml.c trunk/ext/simplexml/simplexml.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-65158@lists.php.net to get a copy of this message | ||
Hi,
2011/6/7 Christopher Jones <christopher.jones@oracle.com>
> Ilia,
>
> Since this is a user visible behavior change, should it be added to NEWS?
>
> Chris
>
>
> On 06/06/2011 06:40 PM, Ilia Alshanetsky wrote:
>
>> iliaa Tue, 07 Jun 2011 01:40:54 +0000
>>
>> Revision:
>> http://svn.php.net/viewvc?view=revision&revision=311874
>>
>> Log:
>> Fixed test 008
>>
>> Changed paths:
>> U php/php-src/branches/PHP_5_3/ext/simplexml/simplexml.c
>> U php/php-src/branches/PHP_5_4/ext/simplexml/simplexml.c
>> U php/php-src/trunk/ext/simplexml/simplexml.c
>>
>> Modified: php/php-src/branches/PHP_5_3/ext/simplexml/simplexml.c
>> ===================================================================
>> --- php/php-src/branches/PHP_5_3/ext/simplexml/simplexml.c 2011-06-07
>> 01:27:29 UTC (rev 311873)
>> +++ php/php-src/branches/PHP_5_3/ext/simplexml/simplexml.c 2011-06-07
>> 01:40:54 UTC (rev 311874)
>> @@ -1264,9 +1264,8 @@
>>
>> result = retval->nodesetval;
>>
>> - array_init(return_value);
>> -
>> if (result != NULL) {
>> + array_init(return_value);
>> for (i = 0; i< result->nodeNr; ++i) {
>> nodeptr = result->nodeTab[i];
>> if (nodeptr->type == XML_TEXT_NODE || nodeptr->type
>> == XML_ELEMENT_NODE || nodeptr->type == XML_ATTRIBUTE_NODE) {
>> @@ -1287,6 +1286,8 @@
>> add_next_index_zval(return_value, value);
>> }
>> }
>> + } else {
>> + RETVAL_FALSE;
>> }
>>
>> xmlXPathFreeObject(retval);
>>
>> Modified: php/php-src/branches/PHP_5_4/ext/simplexml/simplexml.c
>> ===================================================================
>> --- php/php-src/branches/PHP_5_4/ext/simplexml/simplexml.c 2011-06-07
>> 01:27:29 UTC (rev 311873)
>> +++ php/php-src/branches/PHP_5_4/ext/simplexml/simplexml.c 2011-06-07
>> 01:40:54 UTC (rev 311874)
>> @@ -1294,9 +1294,8 @@
>>
>> result = retval->nodesetval;
>>
>> - array_init(return_value);
>> -
>> if (result != NULL) {
>> + array_init(return_value);
>> for (i = 0; i< result->nodeNr; ++i) {
>> nodeptr = result->nodeTab[i];
>> if (nodeptr->type == XML_TEXT_NODE || nodeptr->type
>> == XML_ELEMENT_NODE || nodeptr->type == XML_ATTRIBUTE_NODE) {
>> @@ -1317,6 +1316,8 @@
>> add_next_index_zval(return_value, value);
>> }
>> }
>> + } else {
>> + RETVAL_FALSE;
>> }
>>
>> xmlXPathFreeObject(retval);
>>
>> Modified: php/php-src/trunk/ext/simplexml/simplexml.c
>> ===================================================================
>> --- php/php-src/trunk/ext/simplexml/simplexml.c 2011-06-07 01:27:29 UTC
>> (rev 311873)
>> +++ php/php-src/trunk/ext/simplexml/simplexml.c 2011-06-07 01:40:54 UTC
>> (rev 311874)
>> @@ -1294,9 +1294,8 @@
>>
>> result = retval->nodesetval;
>>
>> - array_init(return_value);
>> -
>> if (result != NULL) {
>> + array_init(return_value);
>> for (i = 0; i< result->nodeNr; ++i) {
>> nodeptr = result->nodeTab[i];
>> if (nodeptr->type == XML_TEXT_NODE || nodeptr->type
>> == XML_ELEMENT_NODE || nodeptr->type == XML_ATTRIBUTE_NODE) {
>> @@ -1317,6 +1316,8 @@
>> add_next_index_zval(return_value, value);
>> }
>> }
>> + } else {
>> + RETVAL_FALSE;
>> }
>>
>> xmlXPathFreeObject(retval);
>>
>>
>>
>
This breaks the fix for bug #48601 (ext/simplexml/tests/bug48601.phpt)
--
Regards,
Felipe Pena