softlayer-api-php-client icon indicating copy to clipboard operation
softlayer-api-php-client copied to clipboard

SoftLayer_Product_Package::getCategories is not retrieving data for some packages when using SoftLayer_XmlrpcClient

Open mhca opened this issue 10 years ago • 3 comments

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.

mhca avatar Aug 31 '15 16:08 mhca

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!

underscorephil avatar Sep 08 '15 14:09 underscorephil

Thank you!

mhca avatar Sep 08 '15 14:09 mhca

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.

camporter avatar Sep 11 '15 00:09 camporter