2010-10-18 119 views

回答

2

您可以以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); 
} 
+0

完美!非常感谢!大绿色滴答作响! – bugmagnet 2010-10-19 13:59:15