Some reminiscences, some memories
Just another boring day

September 16, 2008

为什么“is_file比file_exists快N倍”

Filed under: PHP — Tags: , , — mikespook @ 8:19 am

首先,写本文的原因是看到番茄的这个 post:http://www.tblog.com.cn/archives/675

我没有重新测试,对于番茄的测试,我觉得绝对靠谱。

But why?

于是打开 php 的代码寻找到了 is_file 和 file_exists 的实现。其实原因简单到让人无法相信! (more…)

Powered by WordPress 沪ICP备05006454号