Lines Matching refs:prompt_spec
137 char *prompt_spec = CLIR_G(prompt) ? CLIR_G(prompt) : DEFAULT_PROMPT; in cli_get_prompt() local
141 if (*prompt_spec == '\\') { in cli_get_prompt()
142 switch (prompt_spec[1]) { in cli_get_prompt()
145 prompt_spec++; in cli_get_prompt()
149 prompt_spec++; in cli_get_prompt()
153 prompt_spec++; in cli_get_prompt()
157 prompt_spec++; in cli_get_prompt()
163 prompt_spec++; in cli_get_prompt()
167 prompt_spec++; in cli_get_prompt()
171 prompt_spec++; in cli_get_prompt()
175 prompt_spec++; in cli_get_prompt()
181 } else if (*prompt_spec == '`') { in cli_get_prompt()
182 char *prompt_end = strstr(prompt_spec + 1, "`"); in cli_get_prompt()
186 code = estrndup(prompt_spec + 1, prompt_end - prompt_spec - 1); in cli_get_prompt()
190 zend_eval_stringl(code, prompt_end - prompt_spec - 1, NULL, "php prompt code"); in cli_get_prompt()
194 prompt_spec = prompt_end; in cli_get_prompt()
197 if (!(*prompt_spec & 0x80)) { in cli_get_prompt()
198 smart_str_appendc(&retval, *prompt_spec); in cli_get_prompt()
208 } while (++prompt_spec && *prompt_spec); in cli_get_prompt()