These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||
$swfdata = file_get_contents('test.swf'); $swf = new SWFEditor(); $swf->load($swfdata); $swf->dump(); //$swf->save();
cd /php/php-5.1.6/ext ./ext_skel --extname=swfed cd swfed/ vi config.m4 phpize ./configure make
PHP_FUNCTION(confirm_swfed_compiled); /* For testing, remove later. */ static zend_class_entry *swfed_ce; PHP_METHOD(swfed, load); PHP_METHOD(swfed, dump);swfed.c
zend_function_entry swfed_functions[] = { PHP_FE(confirm_swfed_compiled, NULL) /* For testing, remove later. */ PHP_ME(swfed, load, NULL, 0) PHP_ME(swfed, dump, NULL, 0) } <略> PHP_MINIT_FUNCTION(swfed) { /* If you have INI entries, uncomment these lines ZEND_INIT_MODULE_GLOBALS(swfed, php_swfed_init_globals, NULL); REGISTER_INI_ENTRIES(); */ zend_class_entry ce; INIT_CLASS_ENTRY(ce, "SWFEditor", swfed_functions); <略> PHP_METHOD(swfed, load){ char *data; int data_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &data, &data_len) == FAILURE) { return; } <色々> } PHP_METHOD(swfed, dump){ <色々> }さて、以前作った SWFEditor を真似して実装するか。