String f_mcrypt_enc_get_modes_name(CObjRef td) { char *name = mcrypt_enc_get_modes_name(td.getTyped<MCrypt>()->m_td); String ret(name, CopyString); mcrypt_free(name); return ret; }
String HHVM_FUNCTION(mcrypt_enc_get_modes_name, const Resource& td) { char *name = mcrypt_enc_get_modes_name(cast<MCrypt>(td)->m_td); String ret(name, CopyString); mcrypt_free(name); return ret; }