SimpleXMLIterator will be available in next release of hhvm (probably 3.9) https://github.com/facebook/hhvm/commits/d29d110217bf3fabdc75d487f4c96740603ae2eb
Error "Unknown class SimpleXMLIterator" with HHVM
Question
It looks like HHVM is having trouble with SimpleXML according to
https://github.com/facebook/hhvm/issues/650
https://github.com/facebook/hhvm/issues/303
The class SimpleXMLIterator is used on our case by Amazon S3' PHP SDK. I tried the same code when HHVM is turned off and that works perfectly.
Any idea/fix to solve this? Or ways to go around it by using other XML parsing tool for S3 SDK than CFSimpleXML?
Code used:
$s3->batch()->copy_object(
array('bucket' => $temp_bucket, 'filename' => $filename_source),
array('bucket' => $bucket, 'filename' => $filename_dest),
array('acl' => AmazonS3::ACL_PUBLIC)
);
$response = $s3->batch()->send();
Bug report from HHVM :
HipHop Fatal error: unknown class SimpleXMLIterator in XX/librairies/s3sdk/utilities/simplexml.class.php on line 33
Solution 2
OTHER TIPS
Sadly SimpleXMLIterator
just hasn't been implemented yet. You can either do it, or open an issue and wait for someone else to do it.
https://github.com/facebook/hhvm/search?q=SimpleXMLIterator&ref=cmdform
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow