From 37b2d1689dbd12dc6fea9238e9c41aa9ee390fc3 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 20 Apr 2018 16:05:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bcomment=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Builder.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/db/Builder.php b/library/think/db/Builder.php index d761a4b5..abc51c1d 100644 --- a/library/think/db/Builder.php +++ b/library/think/db/Builder.php @@ -625,6 +625,9 @@ abstract class Builder */ protected function parseComment($comment) { + if (false !== strpos($comment, '*/')) { + $comment = strstr($coment, '*/', true); + } return !empty($comment) ? ' /* ' . $comment . ' */' : ''; }