惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
Vercel News
Vercel News
D
Docker
博客园 - 聂微东
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
D
DataBreaches.Net
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
美团技术团队
F
Fortinet All Blogs
MongoDB | Blog
MongoDB | Blog
T
The Blog of Author Tim Ferriss
GbyAI
GbyAI
N
Netflix TechBlog - Medium
G
Google Developers Blog
腾讯CDC

博客园 - bqrm_521(小奎)

.net连接eDirectory,需要安全连接的解决方案 ObDereferenceObjectDeferDelete routine ObDereferenceObject routine ObCloseHandle routine InitializeObjectAttributes 宏 Driver Support Routines(驱动程序开发支持例程) AdapterControl routine Standard Driver Routines(标准驱动程序) DriverEntry 文件系统过滤驱动的DriverEntry PHP扩展的加载流程 PHP扩展中定义一个类 PHP的HashTable(二) PHP的HashTable(一) PHP扩展中访问全局变量$_POST,$_GET,$_SERVER等 要搬家了,全部书籍10元转让 scribe2.2 ssh 使用技巧 安装scribe
开发PHP扩展(一)
bqrm_521(小奎) · 2012-09-25 · via 博客园 - bqrm_521(小奎)

先按照

https://github.com/walu/phpbook/blob/master/5.1.md

建好扩展的结构 ,三个关键的文件都要有:

config.m4

php_extname.h

extname.c

然后,把三个文件里面的WALU/walu 替换为相应的extname  注意大小写 

然后运行:

phpize 

./configure --enable-extname 

make

make install

扩展就弄好了.

只是我在按照链接的文章创建的时候,碰到一个问题,扩展编译好了,可是加载到php的时候,老是提示错误:

Invalid library (maybe not a PHP library) 'tonic.so'

然后,objdump -T tonic.so  发现没有找到符号 ,get_module,

我就知道问题出在ZEND_GET_MODULE宏上,

最后替换COMPILE_DL_SAMPLE为COMPILE_DL_TONIC

就OK了