PHP Extension Development Note 1

Source: Internet
Author: User
Tags bz2 sapi

"Yum" Install Wget-y
cd/usr/local/src/
wget http://php.net/distributions/php-5.6.19.tar.bz2
JXF Tar php-5.6.19.tar.bz2
CD php-5.6.19/ext/
94./ext_skel
/ext_skel--extname=imsjobs

[Email protected] ext]#./ext_skel--extname=imsjobscreating directory imsjobscreating basic FILES:CONFIG.M4 Config.w32. Gitignore imsjobs.c php_imsjobs.h CREDITS experimental TESTS/001.PHPT imsjobs.php [done]. To use your new extension and you'll have to execute the following steps:1.  $ CD. 2.  $ VI ext/imsjobs/config.m43.  $./buildconf4.  $./configure--[WITH|ENABLE]-IMSJOBS5.  $ make6.  $./sapi/cli/php-f EXT/IMSJOBS/IMSJOBS.PHP7.  $ VI ext/imsjobs/imsjobs.c8.  $ makerepeat Steps 3-6 until you be satisfied with EXT/IMSJOBS/CONFIG.M4 Andstep 6 confirms this your module is compiled Into PHP. Then, start Writingcode and repeat the last of the steps as often as necessary.

CD.
Vim ext/imsjobs/config.m4

Just remove these 3 lines of comments:

php_arg_with (Imsjobs, for Imsjobs Support,make sure that the comment is aligned:[-- With-imsjobs Include imsjobs support]) 

98./buildconf
/buildconf--force
Yum Install autoconf
101./buildconf--force
102 Vim Ext/imsjobs/php_imsjobs.h
103 ./buildconf--force
104./configure
Yum Install gcc
106./configure
107./configure--with-imsjobs
108 Yum Install Libxml2-devel
109 ./configure--with-imsjobs
Make
111 ./sapi/cli/php-f ext/imsjobs/imsjobs.php
EXT/IMSJOBS/IMSJOBS.C VI
113 Vim EXT/IMSJOBS/IMSJOBS.C

Not to be continued

PHP Extension Development Note 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.