Lines Matching refs:prompt_spec
144 char *prompt_spec = CLIR_G(prompt) ? CLIR_G(prompt) : DEFAULT_PROMPT; in cli_get_prompt() local
147 if (*prompt_spec == '\\') { in cli_get_prompt()
148 switch (prompt_spec[1]) { in cli_get_prompt()
151 prompt_spec++; in cli_get_prompt()
155 prompt_spec++; in cli_get_prompt()
159 prompt_spec++; in cli_get_prompt()
163 prompt_spec++; in cli_get_prompt()
169 prompt_spec++; in cli_get_prompt()
173 prompt_spec++; in cli_get_prompt()
177 prompt_spec++; in cli_get_prompt()
181 prompt_spec++; in cli_get_prompt()
187 } else if (*prompt_spec == '`') { in cli_get_prompt()
188 char *prompt_end = strstr(prompt_spec + 1, "`"); in cli_get_prompt()
192 code = estrndup(prompt_spec + 1, prompt_end - prompt_spec - 1); in cli_get_prompt()
196 zend_eval_stringl(code, prompt_end - prompt_spec - 1, NULL, "php prompt code"); in cli_get_prompt()
200 prompt_spec = prompt_end; in cli_get_prompt()
203 smart_str_appendc(&retval, *prompt_spec); in cli_get_prompt()
205 } while (++prompt_spec && *prompt_spec); in cli_get_prompt()