Skip to content

Commit

Permalink
Merge pull request #21 from big-dream/patch-5
Browse files Browse the repository at this point in the history
改进 PHP 版本判断
  • Loading branch information
liu21st authored Feb 14, 2023
2 parents abfc293 + 136eaed commit 6d25642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function fetch(string $template, array $vars = []): void

// 页面缓存
ob_start();
if (PHP_VERSION > 8.0) {
if (version_compare(PHP_VERSION, '8.0', '>=')) {
ob_implicit_flush(false);
} else {
ob_implicit_flush(0);
Expand Down

0 comments on commit 6d25642

Please sign in to comment.