I'm having strange issues when using AWS SDK for PHP (
http://aws.amazon.com/sdkforphp/)
This SDK is encoded in one single Phar package and it's included like this:
<?php
require_once "library/aws.phar";
use Aws\S3\S3Client;
$s3 = S3Client::factory(...);
?>
I'm having heavily random errors, when using it, failure message like this:
Fatal error: Cannot redeclare class
Guzzle\Service\Command\LocationVisitor\Request\AbstractRequestVisitor in
phar:///mnt/var/vcap.local/dea/apps/botigapegatina-0-656f49e0654917d4706e293864d0c2fa/app/msc_lib/classes/aws/aws.phar/Guzzle/Service/Command/LocationVisitor/Request/AbstractRequestVisitor.php
on line 9
...
Sometimes it works, it seems that depens if the instance wants to or not when is started. One way to check is to create a project with 2 or more instances and reload the page, sometimes appfog serves a instance fully working (no errors) and sometimes one with the failure. I the application is restarted you have some chances that all the instances works or fails, nothing predictable.
Is anybody having issues like this? ara phar packages suported in php?
I'd appreciate any help on this, thanks.
PD: I wrote a ticket suport 5 days ago, no answer yet...