Innovate faster and cut risk with PHP experts from Zend Services.
Learn PHP from PHP experts with free, on-demand, and instructor led courses.
Submit support requests and browse self-service resources.
Writing a basic PHP extension is not too difficult. You only need to create a few files. You can do this manually, but you may also use the “ext_skel.php” script:
$ php php-src/ext/ext_skel.php --ext test --dir .
Unfortunately, this script is not distributed with binary PHP builds and is only available in source distribution. This will create directory “test” with extension skeleton files. Let’s look inside:
$ cd test$ ls
config.m4 config.w32 php_test.h test.c tests
In the above code snippet:
Request PDF Version