You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous code has a bug, in that it assigns the names of the objects, not the objects themselves.
It also has complex looping logic setting and examining $marker which in fact does nothing.
I found that both count() and empty() do not work as expected on the array returned by the function - I have not worked out why, just avoided their use.
/* If we wanted to save time, we could count the contents of the array
224
+
* and only do this assignment for the final entry.
225
+
* However the counting itself takes time, and makes the code more complex.
226
+
*/
227
+
$marker = $object->getName();
228
+
}
210
229
}
211
-
}
212
230
213
231
`Get the executable PHP script for this example <https://raw.githubusercontent.com/rackspace/php-opencloud/master/samples/ObjectStore/list-objects-over-10000.php>`_
0 commit comments