You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,13 +119,20 @@ The pre_\* and post_\* functions are called with the working directory set to th
119
119
120
120
Extensions are built and installed after php itself.
121
121
122
-
It is of your responsability to provide the loading and parameters of the extension to php, generally by creating an extension_name.ini file in the `${php_band_php_install_dir}/conf.d/` directory.
122
+
It is of your responsability to provide the loading and parameters of the extension to php, generally by either:
123
+
124
+
- create a post extension build callback
125
+
- create an extension_name.ini file in the `${php_band_php_install_dir}/conf.d/` directory.
123
126
124
127
### Using pecl
125
128
126
129
You add some pecl extensions to build in your *configure-php.sh* file by using the function *php_band_pecl_add_package*.
127
-
It takes the package name as first parameter and eventually a string representing user inputs as second parameter.
128
-
The pecl package name must be a string accordingly to [pecl documentation](http://php.net/manual/en/install.pecl.pear.php).
130
+
It takes the following arguments:
131
+
132
+
- the package name as first parameter is mandatory. Refer to [pecl documentation](http://php.net/manual/en/install.pecl.pear.php) for available formats ;
133
+
- an optionnal string representing user inputs as second parameter. Add a newline character `\n` after each simulated user answer ;
134
+
- an optionnal post build callback name. The default value is `post_pecl_<package name>_build`. If the function exists it will be called on successfull build.
135
+
129
136
For example to install the xdebug package, use either :
0 commit comments