Skip to content

Commit

Permalink
Fixed variable scoping issue which can lead to out of memory error.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunhardy committed Jun 12, 2014
1 parent 8112fe1 commit d9327e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Phpforce/SoapClient/Soap/SoapClient.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function getSoapTypes()

$soapTypes = $this->__getTypes();
foreach ($soapTypes as $soapType) {
$properties = array();
$lines = explode("\n", $soapType);
if (!preg_match('/struct (.*) {/', $lines[0], $matches)) {
continue;
Expand Down

1 comment on commit d9327e1

@abegodong
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @shaunhardy,
When update Model, "Id not specified in an update call". Its was skipped the Id property. So fixed by remove the line "$properties = array();"

Please sign in to comment.