phpforce/soap-client — pull request #9 by shaunhardy (2014-06-12 15:51:57+00:00)
Title: Fixed variable scoping issue which can lead to out of memory error.

The ```$properties``` variable I'm assuming was expected to go out of scope, however it does not. Each iteration through the SOAP types appends more elements to the ```$properties``` array without clearing the data from the previous iteration, leading to massive memory consumption and Out of Memory errors in some cases. I added an explicit reassignment to the ```$properties``` variable.

In my specific case, this consumed 171MB, and has been reduced to 2MB.