Skip to content

增强可读性 #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 1.5.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 1.5 PHP的生命周期
# 1.5 小结

这一章讲述了一些后续章节需要的基础概念,是你编写优质的PHP扩展的基础。

Expand Down
4 changes: 3 additions & 1 deletion 4.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ cd /php-5.3
make
make test
make clean //自愿执行,非必须。
</pre>
</pre>
make,尤其是make test命令是个耗时大户,具体执行时间的长短与机器配置有关(<span class='ps'>这两个命令做练习可以,如果我们部署<b>开发环境</b>的时候,建议大家用apt-get或者yum来安装现成的</span>)。

完整编译流程:编译之前请确保权限;1) sudo ./configure --prefix 2) sudo make 3) sudo make test【其实这部分是编译测试、安装过程中一般忽略】 4) sudo make install


## links
* 4.2 [PHP编译前的config配置](<4.2.md>)
Expand Down
2 changes: 1 addition & 1 deletion 5.5.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 5.5 Your First Extension
# 5.5 第五章小结

在这一章里,我们学会了如何创建一个PHP框架并为其添加函数,并编译到PHP中供用户在PHP语言中调用。在接下来的章节里,我们将陆续看到许多高级的PHP内核特性,从而使我们编写出更好的PHP扩展。
编译PHP源码的环境会随着平台与时间的不同而变化,如果本章讲述的知识无法使你顺利的编译PHP,那你可以给我发信,或者去php.net寻找答案,当然最简单的方法是Google,切记的是,万一Google抽风,不要忘了还有Baidu。
Expand Down
2 changes: 1 addition & 1 deletion 6.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ZEND_FUNCTION(byref_calltime)
{
zval *a;

//我们我接收的参数传给zval *a;
//我们把接收的参数传给zval *a;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &a) == FAILURE)
{
RETURN_NULL();
Expand Down
2 changes: 1 addition & 1 deletion 6.3.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 6.3 函数返回值
# 6.3 小结


在这一章里,我们集中讨论了如何把函数执行的结果返回给调用者,通过return语句、引用返回、通过参数返回等等,而且还初步了解了一下zend_arg_info。在下面的章节中,我们将去看一下内核是如何接收调用者传递的参数的。
Expand Down