Lines Matching refs:val

338 static void add_zval(zval* list, const char* id, zval* val)  in add_zval()  argument
340 if (list && val) { in add_zval()
345 zend_hash_index_update(Z_ARRVAL_P(list), index, val); in add_zval()
347 zend_hash_str_update(Z_ARRVAL_P(list), (char*)id, strlen(id), val); in add_zval()
350 zend_hash_next_index_insert(Z_ARRVAL_P(list), val); in add_zval()
373 zval* val; in set_output_options() local
376 …if ((val = zend_hash_str_find(Z_ARRVAL_P(output_opts), OUTPUT_TYPE_KEY, OUTPUT_TYPE_KEY_LEN)) != N… in set_output_options()
377 if (Z_TYPE_P(val) == IS_STRING) { in set_output_options()
378 if (!strcmp(Z_STRVAL_P(val), OUTPUT_TYPE_VALUE_PHP)) { in set_output_options()
380 } else if (!strcmp(Z_STRVAL_P(val), OUTPUT_TYPE_VALUE_XML)) { in set_output_options()
387 …if ((val = zend_hash_str_find(Z_ARRVAL_P(output_opts), VERBOSITY_KEY, VERBOSITY_KEY_LEN)) != NULL)… in set_output_options()
388 if (Z_TYPE_P(val) == IS_STRING) { in set_output_options()
389 if (!strcmp(Z_STRVAL_P(val), VERBOSITY_VALUE_NO_WHITE_SPACE)) { in set_output_options()
391 } else if (!strcmp(Z_STRVAL_P(val), VERBOSITY_VALUE_NEWLINES_ONLY)) { in set_output_options()
393 } else if (!strcmp(Z_STRVAL_P(val), VERBOSITY_VALUE_PRETTY)) { in set_output_options()
400 if ((val = zend_hash_str_find(Z_ARRVAL_P(output_opts), VERSION_KEY, VERSION_KEY_LEN)) != NULL) { in set_output_options()
401 if (Z_TYPE_P(val) == IS_STRING) { in set_output_options()
403 if (!strcmp(Z_STRVAL_P(val), VERSION_VALUE_XMLRPC)) { in set_output_options()
405 } else if (!strcmp(Z_STRVAL_P(val), VERSION_VALUE_SIMPLE)) { in set_output_options()
407 } else if (!strcmp(Z_STRVAL_P(val), VERSION_VALUE_SOAP11)) { in set_output_options()
417 … if ((val = zend_hash_str_find(Z_ARRVAL_P(output_opts), ENCODING_KEY, ENCODING_KEY_LEN)) != NULL) { in set_output_options()
418 if (Z_TYPE_P(val) == IS_STRING) { in set_output_options()
419 options->xmlrpc_out.xml_elem_opts.encoding = estrdup(Z_STRVAL_P(val)); in set_output_options()
424 … if ((val = zend_hash_str_find(Z_ARRVAL_P(output_opts), ESCAPING_KEY, ESCAPING_KEY_LEN)) != NULL) { in set_output_options()
426 if (Z_TYPE_P(val) == IS_ARRAY) { in set_output_options()
431 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(val), iter_val) { in set_output_options()
445 } else if (Z_TYPE_P(val) == IS_STRING) { in set_output_options()
446 if (!strcmp(Z_STRVAL_P(val), ESCAPING_VALUE_CDATA)) { in set_output_options()
448 } else if (!strcmp(Z_STRVAL_P(val), ESCAPING_VALUE_NON_ASCII)) { in set_output_options()
450 } else if (!strcmp(Z_STRVAL_P(val), ESCAPING_VALUE_NON_PRINT)) { in set_output_options()
452 } else if (!strcmp(Z_STRVAL_P(val), ESCAPING_VALUE_MARKUP)) { in set_output_options()
505 zval val; in PHP_to_XMLRPC_worker() local
508 ZVAL_UNDEF(&val); in PHP_to_XMLRPC_worker()
509 type = get_zval_xmlrpc_type(in_val, &val); in PHP_to_XMLRPC_worker()
511 if (!Z_ISUNDEF(val)) { in PHP_to_XMLRPC_worker()
514 if (Z_TYPE(val) == IS_NULL) { in PHP_to_XMLRPC_worker()
518 if (Z_TYPE(val) != IS_STRING) { in PHP_to_XMLRPC_worker()
520 ZVAL_DUP(&newvalue, &val); in PHP_to_XMLRPC_worker()
525 xReturn = XMLRPC_CreateValueBase64(key, Z_STRVAL(val), Z_STRLEN(val)); in PHP_to_XMLRPC_worker()
530 convert_to_string(&val); in PHP_to_XMLRPC_worker()
531 xReturn = XMLRPC_CreateValueDateTime_ISO8601(key, Z_STRVAL(val)); in PHP_to_XMLRPC_worker()
534 convert_to_boolean(&val); in PHP_to_XMLRPC_worker()
535 xReturn = XMLRPC_CreateValueBoolean(key, Z_TYPE(val) == IS_TRUE); in PHP_to_XMLRPC_worker()
538 ZVAL_LONG(&val, zval_get_long(&val)); in PHP_to_XMLRPC_worker()
539 xReturn = XMLRPC_CreateValueInt(key, Z_LVAL(val)); in PHP_to_XMLRPC_worker()
542 convert_to_double(&val); in PHP_to_XMLRPC_worker()
543 xReturn = XMLRPC_CreateValueDouble(key, Z_DVAL(val)); in PHP_to_XMLRPC_worker()
546 convert_to_string(&val); in PHP_to_XMLRPC_worker()
547 xReturn = XMLRPC_CreateValueString(key, Z_STRVAL(val), Z_STRLEN(val)); in PHP_to_XMLRPC_worker()
558 ht = HASH_OF(&val); in PHP_to_XMLRPC_worker()
564 ZVAL_COPY(&val_arr, &val); in PHP_to_XMLRPC_worker()
652 zval val; in XMLRPC_to_PHP() local
653 ZVAL_UNDEF(&val); in XMLRPC_to_PHP()
654 XMLRPC_to_PHP(xIter, &val); in XMLRPC_to_PHP()
655 if (!Z_ISUNDEF(val)) { in XMLRPC_to_PHP()
656 add_zval(elem, XMLRPC_GetValueID(xIter), &val); in XMLRPC_to_PHP()
1368 zval* val; in get_zval_xmlrpc_type() local
1371 …if ((val = zend_hash_str_find_ind(Z_OBJPROP_P(value), OBJECT_VALUE_ATTR, sizeof(OBJECT_VALUE_ATTR)… in get_zval_xmlrpc_type()
1372 ZVAL_COPY_VALUE(newvalue, val); in get_zval_xmlrpc_type()