phpspider icon indicating copy to clipboard operation
phpspider copied to clipboard

彩蛋有毒啊...

Open lynxcat opened this issue 7 years ago • 6 comments

根据文档,一个一个对照...采用测试的方法进行测试都没有问题。但是就是一直[error] Unknown error... 无奈之下怒查源码,发现有毒彩蛋一枚。

    // 彩蛋
    $included_files = get_included_files();
    $content = file_get_contents($included_files[0]);
    if (!preg_match("#/\* Do NOT delete this comment \*/#", $content) || !preg_match("#/\* 不要删除这段注释 \*/#", $content))
    {
        $msg = "Unknown error...";
        log::error($msg);
        exit;
    }

lynxcat avatar Mar 13 '17 05:03 lynxcat

嘿嘿,第一次我就发现了,哈哈

BrainGithub avatar Mar 13 '17 14:03 BrainGithub

好玩吗,让你随便删除注释

owner888 avatar Mar 14 '17 03:03 owner888

preg_match正则支持中文?

ieliwb avatar Sep 21 '17 01:09 ieliwb

原来是这样!!!

Noah-RD avatar Sep 21 '17 11:09 Noah-RD

这实在很棒棒哟 : )

Double-C avatar Oct 12 '17 02:10 Double-C

作者狠毒呀😄

Satsrag avatar Apr 22 '18 07:04 Satsrag