From 6277dabfdb905f7f0c25340eb860b82f08f65188 Mon Sep 17 00:00:00 2001 From: dairidong <48778797+dairidong@users.noreply.github.com> Date: Thu, 1 Dec 2022 16:45:25 +0800 Subject: [PATCH] Update QiniuAdapter.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 配置名称错误,见 php 文档 [allow-url-fopen](https://www.php.net/manual/zh/filesystem.configuration.php#ini.allow-url-fopen) --- src/QiniuAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QiniuAdapter.php b/src/QiniuAdapter.php index 890537e..e1bc289 100644 --- a/src/QiniuAdapter.php +++ b/src/QiniuAdapter.php @@ -90,7 +90,7 @@ public function read(string $path): string public function readStream(string $path): string { - if (ini_get('allow_url_open')) { + if (ini_get('allow_url_fopen')) { if ($result = fopen($this->privateDownloadUrl($path), 'r')) { return $result; }