Skip to content

Commit

Permalink
修复github查看排版混乱问题
Browse files Browse the repository at this point in the history
修复github web查看排版混乱问题
  • Loading branch information
Astraeux committed May 24, 2016
1 parent a0aa664 commit dc50f03
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions 5.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ Zend Extension Api No: 220050617

````

<div class="tip-common">
The extra 2 at the start of Zend Extension Api No isn't a typo; it corresponds to the Zend Engine 2 version and is meant to keep this API number greater than its ZE1 counterpart.</div>
现在查看一下我们扩展所在的目录,会发现多了许多文件。phpize程序根据config.m4里的信息生成了许多编译php扩展必须的文件,比如生成makefiles等,这为我们省了很多的麻烦。
接下来我们运行./configure脚本,这里我们并不需要再注明enable-maintainer-zts、enable-debug等参数,phpize程序会自动的去已经编译完成的php核心里获取这几个参数的值。
接下来就像我们安装其它程序一样执行make; make test;即可,如果没有错误,那么在module文件夹下面便会生成我们的目标文件 —— walu.so。
<div class="tip-common">The extra 2 at the start of Zend Extension Api No isn't a typo; it corresponds to the Zend Engine 2 version and is meant to keep this API number greater than its ZE1 counterpart.</div>

现在查看一下我们扩展所在的目录,会发现多了许多文件。phpize程序根据config.m4里的信息生成了许多编译php扩展必须的文件,比如生成makefiles等,这为我们省了很多的麻烦。 接下来我们运行./configure脚本,这里我们并不需要再注明enable-maintainer-zts、enable-debug等参数,phpize程序会自动的去已经编译完成的php核心里获取这几个参数的值。 接下来就像我们安装其它程序一样执行make; make test;即可,如果没有错误,那么在module文件夹下面便会生成我们的目标文件 —— walu.so。

### 在windows平台下编译
The config.m4 file you created earlier was actually specific to the *nix build. In order to make your extension compile under Windows, you'll need to create a separatebut similarconfiguration file for it.
Add config.w32 with the following contents to your ext/sample directory:
Expand Down

0 comments on commit dc50f03

Please sign in to comment.