Lines Matching refs:ZSTR_LEN

67 	tmp = estrndup(ZSTR_VAL(new_value), ZSTR_LEN(new_value));
130 tmp = estrndup(ZSTR_VAL(new_value), ZSTR_LEN(new_value));
192 url_parts = php_url_parse_ex(ZSTR_VAL(url->s), ZSTR_LEN(url->s));
301 ZSTR_VAL(ctx->arg.s)[ZSTR_LEN(ctx->arg.s)] = '\0';
365 ZSTR_LEN(host_tmp) = colon - ZSTR_VAL(host_tmp);
366 ZSTR_VAL(host_tmp)[ZSTR_LEN(host_tmp)] = '\0';
384 if (ctx->attr_val.s && ZSTR_LEN(ctx->attr_val.s)) {
385 url_parts = php_url_parse_ex(ZSTR_VAL(ctx->attr_val.s), ZSTR_LEN(ctx->attr_val.s));
428 if (ZSTR_LEN(ctx->form_app.s) > 0) {
429 switch (ZSTR_LEN(ctx->tag.s)) {
431 if (!strncasecmp(ZSTR_VAL(ctx->tag.s), "form", ZSTR_LEN(ctx->tag.s))
457 ZSTR_LEN(ctx->tag.s) = 0;
460 for (i = 0; i < ZSTR_LEN(ctx->tag.s); i++)
463 …if ((ctx->lookup_data = zend_hash_str_find_ptr(ctx->tags, ZSTR_VAL(ctx->tag.s), ZSTR_LEN(ctx->tag.…
465 if (ZSTR_LEN(ctx->tag.s) == sizeof("form")-1
466 && !strncasecmp(ZSTR_VAL(ctx->tag.s), "form", ZSTR_LEN(ctx->tag.s))) {
478 ZSTR_LEN(ctx->arg.s) = 0;
482 strncasecmp(ZSTR_VAL(ctx->arg.s), "action", ZSTR_LEN(ctx->arg.s)) == 0) {
508 YYLIMIT = ZSTR_VAL(ctx->buf.s) + ZSTR_LEN(ctx->buf.s);
583 ZSTR_LEN(ctx->buf.s) = rest;
599 smart_str_appendl(&url_app, ZSTR_VAL(encoded), ZSTR_LEN(encoded));
607 smart_str_appendl(&url_app, ZSTR_VAL(encoded), ZSTR_LEN(encoded));
616 if (newlen) *newlen = ZSTR_LEN(buf.s);
617 result = estrndup(ZSTR_VAL(buf.s), ZSTR_LEN(buf.s));
636 *newlen = ZSTR_LEN(ctx->result.s);
641 *newlen += ZSTR_LEN(ctx->buf.s);
646 retval = estrndup(ZSTR_VAL(ctx->result.s), ZSTR_LEN(ctx->result.s));
696 if (ZSTR_LEN(url_state->url_app.s) != 0) {
703 } else if (ZSTR_LEN(url_state->url_app.s) == 0) {
705 if (ctx->buf.s && ZSTR_LEN(ctx->buf.s)) {
709 *handled_output = estrndup(ZSTR_VAL(ctx->result.s), ZSTR_LEN(ctx->result.s));
710 *handled_output_len = ZSTR_LEN(ctx->buf.s) + output_len;
756 if (url_state->url_app.s && ZSTR_LEN(url_state->url_app.s) != 0) {
762 smart_str_appendl(&sname, ZSTR_VAL(encoded), ZSTR_LEN(encoded)); zend_string_free(encoded);
764 smart_str_appendl(&svalue, ZSTR_VAL(encoded), ZSTR_LEN(encoded)); zend_string_free(encoded);
766 smart_str_appendl(&hname, ZSTR_VAL(encoded), ZSTR_LEN(encoded)); zend_string_free(encoded);
768 smart_str_appendl(&hvalue, ZSTR_VAL(encoded), ZSTR_LEN(encoded)); zend_string_free(encoded);
817 ZSTR_LEN(url_state->form_app.s) = 0;
820 ZSTR_LEN(url_state->url_app.s) = 0;
859 if (!url_state->url_app.s || !ZSTR_LEN(url_state->url_app.s)) {
864 encoded = php_raw_url_encode(ZSTR_VAL(name), ZSTR_LEN(name));
865 smart_str_appendl(&sname, ZSTR_VAL(encoded), ZSTR_LEN(encoded));
867 …encoded = php_escape_html_entities_ex((unsigned char *)ZSTR_VAL(name), ZSTR_LEN(name), 0, ENT_QUOT…
868 smart_str_appendl(&hname, ZSTR_VAL(encoded), ZSTR_LEN(encoded));
871 smart_str_appendl(&sname, ZSTR_VAL(name), ZSTR_LEN(name));
872 smart_str_appendl(&hname, ZSTR_VAL(name), ZSTR_LEN(name));
888 ZSTR_VAL(url_app.s), ZSTR_LEN(url_app.s),
889 ZSTR_VAL(url_state->url_app.s) + ZSTR_LEN(url_state->url_app.s));
896 limit = ZSTR_VAL(url_state->url_app.s) + ZSTR_LEN(url_state->url_app.s);
897 end = start + ZSTR_LEN(url_app.s);
908 if (ZSTR_LEN(url_state->url_app.s) == end - start) {
920 ZSTR_LEN(url_state->url_app.s) - (end - ZSTR_VAL(url_state->url_app.s)));
921 ZSTR_LEN(url_state->url_app.s) -= end - start;
922 ZSTR_VAL(url_state->url_app.s)[ZSTR_LEN(url_state->url_app.s)] = '\0';
926 ZSTR_VAL(form_app.s), ZSTR_LEN(form_app.s),
927 ZSTR_VAL(url_state->form_app.s) + ZSTR_LEN(url_state->form_app.s));
935 limit = ZSTR_VAL(url_state->form_app.s) + ZSTR_LEN(url_state->form_app.s);
936 end = start + ZSTR_LEN(form_app.s);
946 ZSTR_LEN(url_state->form_app.s) - (end - ZSTR_VAL(url_state->form_app.s)));
947 ZSTR_LEN(url_state->form_app.s) -= end - start;
948 ZSTR_VAL(url_state->form_app.s)[ZSTR_LEN(url_state->form_app.s)] = '\0';