Skip to content

PHP-FPM crashes when using the S3Client #737

@sandboxws

Description

@sandboxws

I've the following script that works just fine when I run from the terminal but for some reason it crashes with php-fpm + apache every time.

<?php

require 'vendor/autoload.php';

use Aws\S3\S3Client;

$client = S3Client::factory(array(
  'version' => 'latest',
  'region' => 'us-east-1',
));

$result = $client->listBuckets();

foreach ($result['Buckets'] as $bucket) {
  // Each Bucket value will contain a Name and CreationDate
  echo ("{$bucket['Name']} - {$bucket['CreationDate']}\n");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions