ComposerUpdate

This commit is contained in:
邹景立 2021-01-12 14:24:46 +08:00
parent 48a0dd564d
commit 268e7d5461
3 changed files with 20 additions and 14 deletions

View File

@ -709,17 +709,17 @@
}, },
{ {
"name": "topthink/think-template", "name": "topthink/think-template",
"version": "v2.0.7", "version": "v2.0.8",
"version_normalized": "2.0.7.0", "version_normalized": "2.0.8.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/top-think/think-template.git", "url": "https://github.com/top-think/think-template.git",
"reference": "e98bdbb4a4c94b442f17dfceba81e0134d4fbd19" "reference": "abfc293f74f9ef5127b5c416310a01fe42e59368"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/top-think/think-template/zipball/e98bdbb4a4c94b442f17dfceba81e0134d4fbd19", "url": "https://api.github.com/repos/top-think/think-template/zipball/abfc293f74f9ef5127b5c416310a01fe42e59368",
"reference": "e98bdbb4a4c94b442f17dfceba81e0134d4fbd19", "reference": "abfc293f74f9ef5127b5c416310a01fe42e59368",
"shasum": "", "shasum": "",
"mirrors": [ "mirrors": [
{ {
@ -732,7 +732,7 @@
"php": ">=7.1.0", "php": ">=7.1.0",
"psr/simple-cache": "^1.0" "psr/simple-cache": "^1.0"
}, },
"time": "2019-09-20T15:31:04+00:00", "time": "2020-12-10T07:52:03+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {
@ -750,11 +750,7 @@
"email": "liu21st@gmail.com" "email": "liu21st@gmail.com"
} }
], ],
"description": "the php template engine", "description": "the php template engine"
"support": {
"issues": "https://github.com/top-think/think-template/issues",
"source": "https://github.com/top-think/think-template/tree/v2.0.7"
}
}, },
{ {
"name": "topthink/think-view", "name": "topthink/think-view",

2
vendor/services.php vendored
View File

@ -1,5 +1,5 @@
<?php <?php
// This file is automatically generated at:2021-01-11 11:55:05 // This file is automatically generated at:2021-01-12 14:24:15
declare (strict_types = 1); declare (strict_types = 1);
return array ( return array (
0 => 'think\\admin\\Library', 0 => 'think\\admin\\Library',

View File

@ -245,7 +245,11 @@ class Template
// 页面缓存 // 页面缓存
ob_start(); ob_start();
ob_implicit_flush(0); if (PHP_VERSION > 8.0) {
ob_implicit_flush(false);
} else {
ob_implicit_flush(0);
}
// 读取编译存储 // 读取编译存储
$this->storage->read($cacheFile, $this->data); $this->storage->read($cacheFile, $this->data);
@ -345,7 +349,13 @@ class Template
} }
// 读取第一行 // 读取第一行
preg_match('/\/\*(.+?)\*\//', fgets($handle), $matches); $line = fgets($handle);
if (false === $line) {
return false;
}
preg_match('/\/\*(.+?)\*\//', $line, $matches);
if (!isset($matches[1])) { if (!isset($matches[1])) {
return false; return false;