bool c_XSLTProcessor::t_setprofiling(const String& filename) { if (filename.length() > 0) { String translated = File::TranslatePath(filename); Stream::Wrapper* w = Stream::getWrapperFromURI(translated); if (!w) return false; if (w->access(translated, W_OK)) { m_profile = translated; return true; } } return false; }
static bool HHVM_METHOD(XSLTProcessor, setProfiling, const String& filename) { auto data = Native::data<XSLTProcessorData>(this_); if (filename.length() > 0) { String translated = File::TranslatePath(filename); Stream::Wrapper* w = Stream::getWrapperFromURI(translated); if (!w) return false; if (w->access(translated, W_OK)) { data->m_profile = translated; return true; } } return false; }