tpyo/amazon-s3-php-class — Issue #17: PHP error from putObject() method
Author: integrationservices
Created: 2011-12-14 13:08:06+00:00
State: open

I'm receiving the following PHP error from the putObject() method.

Severity: Warning
Message: Cannot use a scalar value as an array
Filename: libraries/S3.php
Line Number: 510

This is due to the code only checking if the $input variable is a string, meaning if I want to write just a number to a file it fails to work properly.

To fix I just need to change line 474 to:
if (!is_array($input)) $input = array(