Lines Matching refs:ZSTR_VAL

283 …ZEND_ASSERT(ZSTR_LEN(unescaped_cmd) == strlen(ZSTR_VAL(unescaped_cmd)) && "Must be a binary safe s…  in php_escape_shell_cmd()
285 const char *str = ZSTR_VAL(unescaped_cmd); in php_escape_shell_cmd()
304 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_cmd()
319 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
321 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
354 ZSTR_VAL(cmd)[y++] = '^'; in php_escape_shell_cmd()
356 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
360 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
364 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_cmd()
390 …ZEND_ASSERT(ZSTR_LEN(unescaped_arg) == strlen(ZSTR_VAL(unescaped_arg)) && "Must be a binary safe s… in php_escape_shell_arg()
392 const char *str = ZSTR_VAL(unescaped_arg); in php_escape_shell_arg()
405 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
407 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
417 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_arg()
428 ZSTR_VAL(cmd)[y++] = ' '; in php_escape_shell_arg()
432 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
433 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
434 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
438 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_arg()
442 if (y > 0 && '\\' == ZSTR_VAL(cmd)[y - 1]) { in php_escape_shell_arg()
444 for (; n >= 0 && '\\' == ZSTR_VAL(cmd)[n]; n--, k++); in php_escape_shell_arg()
446 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
450 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
452 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
454 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_arg()