The Code is as follows {code ...} returns an error string & #039; EOF & #039; (length3) Where is the error? PS: both the ASB accounts are correct. The error code is as follows:
require_once('php-sdk-master/qiniu/rs.php');$bucket = "**";$accessKey = '**';$secretKey = '**';Qiniu_SetKeys($accessKey, $secretKey);function fileList() { global $bucket; require_once('php-sdk-master/qiniu/rsf.php'); $client = new Qiniu_MacHttpClient(null); list($items, $marker, $err) = Qiniu_RSF_ListPrefix($client, $bucket); if ($err !== null) { var_dump($err); } else { var_dump($items); }}fileList();
An error is returned.
String 'eof '(length = 3)
What is an error?
PS: the ASB account is correct. This ensures no error.
Reply content:
The Code is as follows:
require_once('php-sdk-master/qiniu/rs.php');$bucket = "**";$accessKey = '**';$secretKey = '**';Qiniu_SetKeys($accessKey, $secretKey);function fileList() { global $bucket; require_once('php-sdk-master/qiniu/rsf.php'); $client = new Qiniu_MacHttpClient(null); list($items, $marker, $err) = Qiniu_RSF_ListPrefix($client, $bucket); if ($err !== null) { var_dump($err); } else { var_dump($items); }}fileList();
An error is returned.
String 'eof '(length = 3)
What is an error?
PS: the ASB account is correct. This ensures no error.
This should not be an error, just printed information, indicating that the list has ended, specifically you can view the https://github.com/qiniu/php-sdk/blob/master/qiniu/rsf.php file top comments.