SoftLayer_Product_Package::getCategories is not retrieving data for some packages when using SoftLayer_XmlrpcClient
SoftLayer_Product_Package::getCategories is not retrieving data for some packages when using SoftLayer_XmlrpcClient
Example:
package to use: 263
========= php script =============
getCategories(); print_r($categories); } catch(Exception $e) { echo "Unable to get categories: " . $e -> getMessage(); } ========= php script ============= Note: We are able to get categories using SoftLayer_SoapClient and REST.
Howdy!
I have been able to recreate this and have opened a bug request with our internal team.
I will update when we have more info!
Thank you!
There is a limitation with the default way in which libxml, a library that the xmlrpc extension in PHP uses, behaves in regards to documents > 10 MB. In this case, the result set is larger than 10 MB, so parsing the result dies.
There is a bug opened for this: https://bugs.php.net/bug.php?id=65604
I've opened https://github.com/php/php-src/pull/1515 to default to parsing documents larger than 10 MB.