2010-10-18 85 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