When I make the call:
$sdb->putAttributes('mydomain', $item_name,
array('v1'=> array('value' => 'myv1', 'replace' => false) );
I see the error:
SimpleDB::putAttributes(): InvalidParameterValue: Value (1) for parameter Replace is invalid. The Replace flag should be either true or false in includes/sdb.php on line 636
When I edited the class to replace the 4 instances of the line:
$rest->setParameter('Item.'.$ii.'.Attribute.'.$i.'.Replace', $v['replace']);
When I make the call:
$sdb->putAttributes('mydomain', $item_name,
array('v1'=> array('value' => 'myv1', 'replace' => false) );
I see the error:
SimpleDB::putAttributes(): InvalidParameterValue: Value (1) for parameter Replace is invalid. The Replace flag should be either true or false in includes/sdb.php on line 636
When I edited the class to replace the 4 instances of the line:
$rest->setParameter('Item.'.$ii.'.Attribute.'.$i.'.Replace', $v['replace']);
with:
$rest->setParameter('Item.'.$ii.'.Attribute.'.$i.'.Replace', $v['replace']?'true':'false');
it seems to behave correctly.
Thanks for sharing.
Cheers.
Thanks David. I'll make the change in subversion.
Also note that Replace defaults to false in SimpleDB, so there's no need to specify it unless you want it set to true.