Skip to content

Commit 860410b

Browse files
committed
fix example typo
1 parent e632cbb commit 860410b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

7/extension_intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ __(5)PHP_ADD_INCLUDE(path):__ 添加include路径,即:`gcc -Iinclude_dir`,
270270

271271
__(6)PHP_CHECK_LIBRARY(library, function [, action-found [, action-not-found [, extra-libs]]]):__ 检查依赖的库中是否存在需要的function,action-found为存在时执行的动作,action-not-found为不存在时执行的动作,比如扩展里使用到线程pthread,检查pthread_create(),如果没找到则终止./configure执行:
272272
```sh
273-
PHP_ADD_INCLUDE(pthread, pthread_create, [], [
273+
PHP_CHECK_LIBRARY(pthread, pthread_create, [], [
274274
AC_MSG_ERROR([not find pthread_create() in lib pthread])
275275
])
276276
```

0 commit comments

Comments
 (0)