Skip to content

Commit 1428310

Browse files
authored
Merge branch 'master' into master
2 parents 4fbe1c3 + 6828e5a commit 1428310

13 files changed

+390
-241
lines changed

book/chapt01/01-01-php-env-building.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
Windows环境下的编译可以参考官方Wiki的说明:<https://wiki.php.net/internals/windows/stepbystepbuild>
9292

9393
## 推荐书籍和参考
94-
* [Gnu Make中文书册](http://www.yayu.org/book/gnu_make/index.html)
94+
* [Gnu Make中文书册](https://github.com/loverszhaokai/GNUMakeManual_CN)
9595
* 《Autotools A Practioner's Guide》
9696

9797
[how-to-contribute]: ?p=D-how-to-contribute

book/chapt01/01-03-comm-code-in-php-src.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
这些代码在PHP的源码中出现的频率极高,基本在每个模块都会有他们的身影。本小节我们提取中间的一些进行说明。
55

66
## 1. "##"和"#"
7-
宏是C/C++是非常强大,使用也很多的一个功能,有时用来实现类似函数内联的效果,
7+
宏是C/C++非常强大、使用也很多的一个功能,有时用来实现类似函数内联的效果,
88
或者将复杂的代码进行简单封装,提高可读性或可移植性等。在PHP的宏定义中经常使用双井号。
99
下面对"##"及"#"进行详细介绍。
1010

book/chapt02/02-01-php-life-cycle-and-zend-engine.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ zend_shutdown将关闭Zend引擎。
249249
而ZEND_MODULE_DTOR宏对应的是module_destructor函数。
250250
在此函数中会调用模块的module_shutdown_func方法,即PHP_RSHUTDOWN_FUNCTION宏产生的那个函数。
251251

252-
在关闭所有的模块后,PHP继续销毁全局函数表,销毁全局类表、销售全局变量表等
252+
在关闭所有的模块后,PHP继续销毁全局函数表,销毁全局类表、销毁全局变量表等
253253
通过zend_shutdown_extensions遍历zend_extensions所有元素,调用每个扩展的shutdown函数。
254254

255255

book/chapt02/02-02-02-embedding-php.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ PHP的强项目前还是在Web开发方面。
5050
int main(int argc, char *argv[])
5151
{
5252
if (argc <= 1) {
53-
printf("Usage: embed4 scriptfile";);
53+
printf("Usage: embed4 scriptfile");
5454
return -1;
5555
}
5656
startup_php();
@@ -151,7 +151,7 @@ main函数:
151151
int main(int argc, char *argv[])
152152
{
153153
if (argc <= 1) {
154-
printf("Usage: embed4 scriptfile";);
154+
printf("Usage: embed4 scriptfile");
155155
return -1;
156156
}
157157
startup_php();
@@ -202,7 +202,7 @@ main函数:
202202
};
203203
/* }}} */
204204

205-
在这个定义中我们看到了若干的NULl定义,在前面一小节中说到SAPI时,我们是以cookie的读取为例,
205+
在这个定义中我们看到了若干的NULL定义,在前面一小节中说到SAPI时,我们是以cookie的读取为例,
206206
在这里也有读取cookie的实现——php_embed_read_cookies函数,但是这个函数的实现是一个空指针NULL。
207207

208208
而这里的flush实现与Apache的不同:

0 commit comments

Comments
 (0)