void CmdZend::onClientImpl(DebuggerClient &client) { if (DebuggerCommand::displayedHelp(client)) return; if (client.argCount() == 0) { const std::string &code = client.getCode(); if (!code.empty()) { const std::string zendExe = client.getZendExecutable(); client.info("Executing last PHP block with \"%s\"...", zendExe.c_str()); string out; Process::Exec(zendExe.c_str(), nullptr, code.c_str(), out, &out, true); client.print(out); return; } } help(client); }