String HHVM_FUNCTION(escapeshellarg, const String& arg) { if (!arg.empty()) { return string_escape_shell_arg(arg.c_str()); } else { return String(s_twosinglequotes); } }
String HHVM_FUNCTION(escapeshellarg, const String& arg) { if (!arg.empty()) { return string_escape_shell_arg(arg.c_str()); } else if (!RuntimeOption::EnableHipHopSyntax) { return String(s_twosinglequotes); } return arg; }
String HHVM_FUNCTION(escapeshellarg, const String& arg) { if (!arg.empty()) { return string_escape_shell_arg(arg.c_str()); } else if (RuntimeOption::EvalQuoteEmptyShellArg) { return String(s_twosinglequotes); } return arg; }