Warning: strpos(): Offset not contained in string in /www/wwwroot/8.8.8.8.8/vendor/tencentcloudbase/tencentcloud-client-php/src/TCCosClient.php on line 106
我也不知道是什么问题,感觉这里的代码很奇怪。直接把代码改了一下,负号去掉。
$fullBucket = bucket;if(strlen(bucket;
if (strlen(bucket;if(strlen(appId) > strlen(bucket)∣∣!strpos(bucket) || !strpos(bucket)∣∣!strpos(bucket, appId,strlen(appId, strlen(appId,strlen(appId)))
{
fullBucket="fullBucket = "fullBucket="bucket-$appId";
}
本文讨论了一个出现在PHP代码中的警告信息,涉及字符串位置判断错误。作者通过修改代码中关于字符串长度和位置的判断逻辑,尝试解决该问题。
1278

被折叠的 条评论
为什么被折叠?



