This version #1 contains a simple function confirm_helloworld_compiled
.
To generate a skeleton of a pecl extension, you can use the binary ext_skel
presents
in PHP sources (directory : ext/
), example:
./ext_skel helloworld
- The first step is to use
phpize
:
phpize
- The second step is to launch
configure
:
./configure
- The third step is to compile it:
make
The last step is to launch tests:
make test
I added a phpt test in tests/
directory named tests/002.phpt
.
You can find a helloworld.php
which can be launch with php.sh
like that:
./php.sh helloworld.php
To clean your repository, you can use:
make clean
phpize --clean