-
第 0 章 介绍
- 《PHP扩展开发与内核应用》贡献者名单
-
第 1 章 PHP 的生命周期
- 1.1 让我们从 SAPI 开始
- 1.2 PHP 的启动与终止
- 1.3 PHP 的生命周期
- 1.4 线程安全
- 1.5 PHP 的生命周期
-
第 2 章 PHP 变量在内核中的实现
- 2.1 变量的类型
- 2.2 变量的值
- 2.3 创建 PHP 变量
- 2.4 变量的存储方式
- 2.5 变量的检索
- 2.6 类型转换
- 2.7 小结
-
第 3 章 内存管理
- 3.1 内存管理
- 3.2 引用计数
- 3.3 总结
-
第 4 章 动手编译 PHP
- 4.1 编译前的准备
- 4.2 PHP 编译前的配置
- 4.3 Unix/Linux 平台下的编译
- 4.4 在 Win32 平台上编译 PHP
- 4.5 小结
-
第 5 章 Your First Extension
- 5.1 一个扩展的基本结构
- 5.2 编译我们的扩展
- 5.3 静态编译
- 5.4 编写函数
- 5.5 小结
-
第 6 章 函数返回值
- 6.1 一个特殊的参数:return_value
- 6.2 引用与函数的执行结
- 6.3 小结
-
第 7 章 函数的参数
- 7.1 zend_parse_parameters
- 7.2 Arg Info 与类型绑定
- 7.3 小结
-
第 8 章 使用 HashTable 与{数组}
- 8.1 数组(C 中的)与链表
- 8.2 操作 HashTable 的 API
- 8.3 在内核中操作PHP语言中数组
- 8.4 小结
-
第 9 章 PHP 中的资源类型
- 9.1 复合类型的数据——{资源}
- 9.2 Persistent Resources
- 9.3 {资源}自有的引用计数
- 9.4 小结
-
第 10 章 PHP 中的面向对象(一)
- 10.1 zend_class_entry
- 10.2 定义一个类
- 10.3 定义一个接口
- 10.4 继承与实现接口
- 10.5 小结
-
第 11 章 PHP中的面向对象(二)
- 11.1 生成对象的实例与调用方法
- 11.2 读写对象的属性
- 读取对象的属性
- 11.3 小结
-
第 12 章 启动与终止的那点事
- 12.1 关于生命周期
- 12.2 MINFO 与 phpinfo
- 12.3 常量
- 12.4 PHP 扩展中的全局变量
- 12.5 PHP 语言中的超级全局变量(Superglobals)
- 12.6 小结
-
第 13 章 INI设置
- 13.1 声明和访问INI设置
- 13.2 小结
-
第 14 章 流式访问
- 14.1 概览
- 14.2 访问流
- 14.3 静态资源操作
- 14.4 小结
-
第 15 章 流的实现
- 15.1 PHP 流的表象之下
- 15.2 包装器操作
- 15.3 实现一个包装器
- 15.4 操纵
- 15.5 检查
- 15.6 小结
-
第 16 章 有趣的流
- 16.1 上下文
- 16.2 过滤器
- 16.3 小结
-
第 17 章 配置和链接
- 17.1 autoconf
- 17.2 库的查找
- 17.3 强制模块依赖
- 17.4 Windows 方言
- 17.5 小结
-
第 18 章 扩展生成
- 18.1 ext_skel
- 18.2 PECL_Gen
- 18.3 小结
- 第 19 章 设置宿主环境
- 19.1 嵌入式 SAPI
- 19.2 构建并编译一个宿主应用
- 19.3 通过嵌入包装重新创建 CLI
- 19.4 老技术新用
- 19.5 小结
-
第 20 章 高级嵌入式
- 20.1 回调到 PHP 中
- 20.2 错误处理
- 20.3 初始化 PHP
- 20.4 覆写 INI_SYSTEM 和 INI_PERDIR 选项
- 20.5 捕获输出
- 20.6 同时扩展和嵌入
- 20.7 小结
PHP 扩展开发及内核应用
About
About the Book
Author
About the Author
Contents
Table of Contents
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.