Lines Matching refs:val

335 static void add_zval(zval* list, const char* id, zval* val)  in add_zval()  argument
337 if (list && val) { in add_zval()
342 zend_hash_index_update(Z_ARRVAL_P(list), index, val); in add_zval()
344 zend_hash_str_update(Z_ARRVAL_P(list), (char*)id, strlen(id), val); in add_zval()
347 zend_hash_next_index_insert(Z_ARRVAL_P(list), val); in add_zval()
370 zval* val; in set_output_options() local
373 …if ((val = zend_hash_str_find(Z_ARRVAL_P(output_opts), OUTPUT_TYPE_KEY, OUTPUT_TYPE_KEY_LEN)) != N… in set_output_options()
374 if (Z_TYPE_P(val) == IS_STRING) { in set_output_options()
375 if (!strcmp(Z_STRVAL_P(val), OUTPUT_TYPE_VALUE_PHP)) { in set_output_options()
377 } else if (!strcmp(Z_STRVAL_P(val), OUTPUT_TYPE_VALUE_XML)) { in set_output_options()
384 …if ((val = zend_hash_str_find(Z_ARRVAL_P(output_opts), VERBOSITY_KEY, VERBOSITY_KEY_LEN)) != NULL)… in set_output_options()
385 if (Z_TYPE_P(val) == IS_STRING) { in set_output_options()
386 if (!strcmp(Z_STRVAL_P(val), VERBOSITY_VALUE_NO_WHITE_SPACE)) { in set_output_options()
388 } else if (!strcmp(Z_STRVAL_P(val), VERBOSITY_VALUE_NEWLINES_ONLY)) { in set_output_options()
390 } else if (!strcmp(Z_STRVAL_P(val), VERBOSITY_VALUE_PRETTY)) { in set_output_options()
397 if ((val = zend_hash_str_find(Z_ARRVAL_P(output_opts), VERSION_KEY, VERSION_KEY_LEN)) != NULL) { in set_output_options()
398 if (Z_TYPE_P(val) == IS_STRING) { in set_output_options()
400 if (!strcmp(Z_STRVAL_P(val), VERSION_VALUE_XMLRPC)) { in set_output_options()
402 } else if (!strcmp(Z_STRVAL_P(val), VERSION_VALUE_SIMPLE)) { in set_output_options()
404 } else if (!strcmp(Z_STRVAL_P(val), VERSION_VALUE_SOAP11)) { in set_output_options()
414 … if ((val = zend_hash_str_find(Z_ARRVAL_P(output_opts), ENCODING_KEY, ENCODING_KEY_LEN)) != NULL) { in set_output_options()
415 if (Z_TYPE_P(val) == IS_STRING) { in set_output_options()
416 options->xmlrpc_out.xml_elem_opts.encoding = estrdup(Z_STRVAL_P(val)); in set_output_options()
421 … if ((val = zend_hash_str_find(Z_ARRVAL_P(output_opts), ESCAPING_KEY, ESCAPING_KEY_LEN)) != NULL) { in set_output_options()
423 if (Z_TYPE_P(val) == IS_ARRAY) { in set_output_options()
428 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(val), iter_val) { in set_output_options()
442 } else if (Z_TYPE_P(val) == IS_STRING) { in set_output_options()
443 if (!strcmp(Z_STRVAL_P(val), ESCAPING_VALUE_CDATA)) { in set_output_options()
445 } else if (!strcmp(Z_STRVAL_P(val), ESCAPING_VALUE_NON_ASCII)) { in set_output_options()
447 } else if (!strcmp(Z_STRVAL_P(val), ESCAPING_VALUE_NON_PRINT)) { in set_output_options()
449 } else if (!strcmp(Z_STRVAL_P(val), ESCAPING_VALUE_MARKUP)) { in set_output_options()
502 zval val; in PHP_to_XMLRPC_worker() local
505 ZVAL_UNDEF(&val); in PHP_to_XMLRPC_worker()
506 type = get_zval_xmlrpc_type(in_val, &val); in PHP_to_XMLRPC_worker()
508 if (!Z_ISUNDEF(val)) { in PHP_to_XMLRPC_worker()
511 if (Z_TYPE(val) == IS_NULL) { in PHP_to_XMLRPC_worker()
515 if (Z_TYPE(val) != IS_STRING) { in PHP_to_XMLRPC_worker()
516 zend_string *str = zval_get_string_func(&val); in PHP_to_XMLRPC_worker()
520 xReturn = XMLRPC_CreateValueBase64(key, Z_STRVAL(val), Z_STRLEN(val)); in PHP_to_XMLRPC_worker()
525 if (!try_convert_to_string(&val)) { in PHP_to_XMLRPC_worker()
528 xReturn = XMLRPC_CreateValueDateTime_ISO8601(key, Z_STRVAL(val)); in PHP_to_XMLRPC_worker()
531 convert_to_boolean(&val); in PHP_to_XMLRPC_worker()
532 xReturn = XMLRPC_CreateValueBoolean(key, Z_TYPE(val) == IS_TRUE); in PHP_to_XMLRPC_worker()
535 ZVAL_LONG(&val, zval_get_long(&val)); in PHP_to_XMLRPC_worker()
536 xReturn = XMLRPC_CreateValueInt(key, Z_LVAL(val)); in PHP_to_XMLRPC_worker()
539 convert_to_double(&val); in PHP_to_XMLRPC_worker()
540 xReturn = XMLRPC_CreateValueDouble(key, Z_DVAL(val)); in PHP_to_XMLRPC_worker()
543 if (!try_convert_to_string(&val)) { in PHP_to_XMLRPC_worker()
546 xReturn = XMLRPC_CreateValueString(key, Z_STRVAL(val), Z_STRLEN(val)); in PHP_to_XMLRPC_worker()
557 ht = HASH_OF(&val); in PHP_to_XMLRPC_worker()
566 ZVAL_COPY(&val_arr, &val); in PHP_to_XMLRPC_worker()
650 zval val; in XMLRPC_to_PHP() local
651 ZVAL_UNDEF(&val); in XMLRPC_to_PHP()
652 XMLRPC_to_PHP(xIter, &val); in XMLRPC_to_PHP()
653 if (!Z_ISUNDEF(val)) { in XMLRPC_to_PHP()
654 add_zval(elem, XMLRPC_GetValueID(xIter), &val); in XMLRPC_to_PHP()
1372 zval* val; in get_zval_xmlrpc_type() local
1375 …if ((val = zend_hash_str_find_ind(Z_OBJPROP_P(value), OBJECT_VALUE_ATTR, sizeof(OBJECT_VALUE_ATTR)… in get_zval_xmlrpc_type()
1376 ZVAL_COPY_VALUE(newvalue, val); in get_zval_xmlrpc_type()