Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #19380 No $object->name
Submitted: 2012-04-11 13:16 UTC
From: phpmikey Assigned:
Status: Open Package: Services_Amazon_S3 (version 0.3.5)
PHP Version: 5.2.16 OS: CentOS
Roadmaps: (Not assigned)    
Subscription  


 [2012-04-11 13:16 UTC] phpmikey (Mike Php)
Description: ------------ $object->name does not exist. Closest thing is ->key Test script: --------------- $s3 = Services_Amazon_S3::getAccount($key, $secret); $bucket = $s3->getBucket($bucket); echo '<ul>'; foreach ($bucket->getObjects() as $object) { echo "<li>{$object->name}</li>"; } echo '</ul>'; Expected result: ---------------- Only file name from ->key Actual result: -------------- !$object->name

Comments