Thanks for the transparent and helpful comments Dave. I understand where CC is, how it got there and where it needs to go and appreciate the insight.
Reading that it is seen as an important issue and that the team there is working with a sense of urgency is encouraging. Although the current approach may mitigate some of the reported issues it seems fraught with compromises i.e. it must be expensive and frustrating to work within the current constraints. Isn't it reasonable to just deal with it without delay i.e. pay the toll now and focus on the future? It's a price all service providers must pay. The stakes just get higher each day; I don't think there’s a shortcut.
... View more
I understand your concern with this sample code however we provide this as a sample to assist users in understanding the functionality of our API and how to interact with it using PHP. We have not devoted too much time into this script and as we state on the download page we are providing it as-is and as a learning tool.
I too agree that you should write code that produces no warnings or notices however in order to keep this sample easy to navigate we have not taken the extra step of adding more code to avoid these warnings.
I would also like to clarify and correct my mistake in stating that the warning was caused by an empty array. What I meant was that the array was not yet declared as an array. In the line before the foreach loop the variable $parsedReturn is set to simplexml_load_string($return). Without a value from the simplexml_load_string $parsedReturn is set as an undefined string variable and the foreach loop cannot process.
... View more