首先,Thread Safe 是指程序在运行时需对线程(thread)进行安全检查,以防止有新要求就启动新线程的 CGI 执行方式耗尽系统资源。None Thread Safe 则指程序在运行时不对线程进行安全检查。 再来看 PHP 的两种服务模式:ISAPI 和 FastCGI 。ISAPI 服务 Read More
posted @ 2019-02-19 14:53 CodingPHP Views(2882) Comments(0) Diggs(0) Edit
PHP 7 中的常量可以通过 const 关键字或 define() 函数两种方式来声明,两者之间的差别在于: const 关键字会在代码编译时定义一个常量 define() 函数则是在代码运行时才定义一个常量 Read More
posted @ 2019-02-19 14:29 CodingPHP Views(1178) Comments(0) Diggs(0) Edit