<?php
$xml = <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult>
<Name>icodeu</Name>
<Prefix>test/</Prefix>
<Marker></Marker>
<MaxKeys>50</MaxKeys>
<Delimiter>/</Delimiter>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>test/</Key>
<LastModified>2015-07-06T06:39:31.000Z</LastModified>
<ETag>"D41D8CD98F00B204E9800998ECF8427E"</ETag>
<Type>Normal</Type>
<Size>0</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/411736e6jw1ep1721d081g20dw0dwq81.gif</Key>
<LastModified>2015-07-06T06:41:53.000Z</LastModified>
<ETag>"F6BD783C585FC6FFACE2844640963760"</ETag>
<Type>Normal</Type>
<Size>198453</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/411736e6jw1ep1723p5p2g20dw0k50z8.gif</Key>
<LastModified>2015-07-06T06:40:20.000Z</LastModified>
<ETag>"707395212780351DC38BA99E1206DC8D"</ETag>
<Type>Normal</Type>
<Size>249878</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/411736e6jw1ep17255qfag20fa0go0xb.gif</Key>
<LastModified>2015-07-06T06:40:16.000Z</LastModified>
<ETag>"E376403C0D8071883A64E9AD4411144B"</ETag>
<Type>Normal</Type>
<Size>179244</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/411736e6jw1ep172prph5g20dw0gm4dl.gif</Key>
<LastModified>2015-07-06T06:40:14.000Z</LastModified>
<ETag>"FBB10807F6140BDF7213CD96A0B76292"</ETag>
<Type>Normal</Type>
<Size>566447</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/411736e6jw1ep172t9gclg20dw0mswmz.gif</Key>
<LastModified>2015-07-06T06:40:12.000Z</LastModified>
<ETag>"1691F2120FC815FD8886C0C70DBCBA0D"</ETag>
<Type>Normal</Type>
<Size>323503</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/411736e6jw1ep172zurzng20dw0ciaus.gif</Key>
<LastModified>2015-07-06T06:40:08.000Z</LastModified>
<ETag>"B23E541194FF1D9C88502543D9A247BF"</ETag>
<Type>Normal</Type>
<Size>774460</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/411736e6jw1ep1732l59pg20dw0eon55.gif</Key>
<LastModified>2015-07-06T06:40:02.000Z</LastModified>
<ETag>"01930378326AFDD028E6BC77674504B3"</ETag>
<Type>Normal</Type>
<Size>304843</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/411736e6jw1ep1736f7y8g20dw0k5qfd.gif</Key>
<LastModified>2015-07-06T06:40:01.000Z</LastModified>
<ETag>"53CA044A1FD385D036E75C97FE63D5C6"</ETag>
<Type>Normal</Type>
<Size>468742</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/6f47394fjw1epgz3x9jn4g20dw0ifwmg.gif</Key>
<LastModified>2015-07-06T06:39:53.000Z</LastModified>
<ETag>"E6C16E7DEA73ECA9A8B05BD49054933A"</ETag>
<Type>Normal</Type>
<Size>304070</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/6f47394fjw1epgz45hkbwg20dw0dwjw8.gif</Key>
<LastModified>2015-07-06T06:39:56.000Z</LastModified>
<ETag>"D9472C5DC394F12AAA9ABC6BA9854282"</ETag>
<Type>Normal</Type>
<Size>189052</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>test/F35FC91F-A380-6F2F-73FC-4C8253182094.jpg</Key>
<LastModified>2015-07-06T06:42:10.000Z</LastModified>
<ETag>"D65514EBCD0F96EB69C073915A708C47"</ETag>
<Type>Normal</Type>
<Size>99834</Size>
<StorageClass>Standard</StorageClass>
<Owner>
<ID>162954</ID>
<DisplayName>162954</DisplayName>
</Owner>
</Contents>
</ListBucketResult>
EOF;
$obj = simplexml_load_string($xml);
var_dump($obj->Contents);
- Output for 8.4.1 - 8.4.13
- object(SimpleXMLElement)#2 (7) {
["Key"]=>
string(5) "test/"
["LastModified"]=>
string(24) "2015-07-06T06:39:31.000Z"
["ETag"]=>
string(34) ""D41D8CD98F00B204E9800998ECF8427E""
["Type"]=>
string(6) "Normal"
["Size"]=>
string(1) "0"
["StorageClass"]=>
string(8) "Standard"
["Owner"]=>
object(SimpleXMLElement)#3 (2) {
["ID"]=>
string(6) "162954"
["DisplayName"]=>
string(6) "162954"
}
}
- Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26
- object(SimpleXMLElement)#2 (7) {
["Key"]=>
string(5) "test/"
["LastModified"]=>
string(24) "2015-07-06T06:39:31.000Z"
["ETag"]=>
string(34) ""D41D8CD98F00B204E9800998ECF8427E""
["Type"]=>
string(6) "Normal"
["Size"]=>
string(1) "0"
["StorageClass"]=>
string(8) "Standard"
["Owner"]=>
object(SimpleXMLElement)#4 (2) {
["ID"]=>
string(6) "162954"
["DisplayName"]=>
string(6) "162954"
}
}
- Output for 4.4.5 - 4.4.9
- Fatal error: Call to undefined function: simplexml_load_string() in /in/bbC0u on line 157
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.1, 4.4.3 - 4.4.4
- Fatal error: Call to undefined function: simplexml_load_string() in /in/bbC0u on line 157
Process exited with code 255. - Output for 4.4.2
- Fatal error: Call to undefined function: simplexml_load_string() in /in/bbC0u on line 158
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- Fatal error: Call to undefined function: simplexml_load_string() in /in/bbC0u on line 157
preferences:
149.69 ms | 412 KiB | 5 Q