PHP中有很多脚本功能。扩展编写器是否可以使用此功能?我真的很想使用多字节函数,但找不到它的例子。
exif module 作为一个例子。它还依赖于mbstring模块,并“直接”调用其函数,即不使用 call_user_function_ex(...)
例如
ZEND_INI_MH(OnUpdateEncode) { #if EXIF_USE_MBSTRING if (new_value && strlen(new_value) && !php_mb_check_encoding_list(new_value TSRMLS_CC)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Illegal encoding ignored: '%s'", new_value); return FAILURE; } #endif return OnUpdateString(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC); }