flagflag  If you want to see English page, please click "English" Button at Left.
1: 2019-08-16 (金) 14:26:19 iseki ソース 2: 2019-08-16 (金) 15:56:36 iseki ソース
Line 1: Line 1:
* PHP 関数拡張 [#qf39fc61] * PHP 関数拡張 [#qf39fc61]
 +*** 実装例 [#h9cb3f05]
 +- http://www.nsl.tuis.ac.jp/svn/linux/auth​d/trunk/php
 +#br
** PHP7 [#jae4f806] ** PHP7 [#jae4f806]
 +*** サンプル実行 [#t033cc47]
 +
 +**** PHP と 拡張機能(サンプル)をコンパイル [#w67d381b]
 + cd [php-dorce-dir]
 + cd ext
 + ./ext_skel --extname=ext_test
 + vi ext_test/config.m4  L10-13をコメントアウト(--with-ext_test 関連)
 + cd ..
 + ./buildconf --force
 + ./configure --with-ext_test
 + make
 +
 +**** 実行 (テスト) [#u6310e48]
 +-  ./sapi/cli/php -f ext/ext_test/ext_test.php
 +-- ''Congratulations! You have successfully modified ext/ext_test/config.m4. Module ext_test is now compiled into PHP.'' が表示されればOK
 +#br
 +
 +**** モジュール (ext_test.so) を作る [#td1b6526]
 + cd ext/ext_test
 + phpize
 + ./configure
 + make
 +
 +- ./modules/ext_test.so ができる
 +#br
 +
** PHP5 [#v5b55d7d] ** PHP5 [#v5b55d7d]
 +*** サンプル実行 [#m6b6e697]
 +
 +**** PHP のコンパイル [#g4318478]
 + cd [php-dorce-dir]
 + ./configure
 +  make
 +
 +**** 拡張機能(サンプル)をコンパイル [#u739f526]
 + cd ext
 + ./ext_skel --extname=ext_test
 + cd ext/ext_test
 + config.m4  L10-13をコメントアウト(--with-ext_test 関連)
 + phpize
 + ./configure
 + make
 +
 +**** 実行 (テスト)[#j1177a63]
 +- モジュール(/modules/ext_test.so)を所定のディレクトリにコピー後: php ext_test.php
 +- または: php -d extension_dir=./modules ext_test.php
 +-- ''Congratulations! You have successfully modified ext/ext_test/config.m4. Module ext_test is now compiled into PHP.'' が表示されればOK
 +#br


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
<今日>

オンライン状況

43 人のユーザが現在オンラインです。 (7 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 43

もっと...

アクセスカウンタ

今日 : 6881688168816881
昨日 : 1016210162101621016210162
総計 : 2343064023430640234306402343064023430640234306402343064023430640
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com