Lines Matching refs:val

341 static int add_zval(zval* list, const char* id, zval** val)  in add_zval()  argument
343 if (list && val) { in add_zval()
348 return zend_hash_index_update(Z_ARRVAL_P(list), index, (void *) val, sizeof(zval **), NULL); in add_zval()
350 …return zend_hash_update(Z_ARRVAL_P(list), (char*) id, strlen(id) + 1, (void *) val, sizeof(zval **… in add_zval()
353 return zend_hash_next_index_insert(Z_ARRVAL_P(list), (void *) val, sizeof(zval **), NULL); in add_zval()
382 zval** val; in set_output_options() local
385 …ind(Z_ARRVAL_P(output_opts), OUTPUT_TYPE_KEY, OUTPUT_TYPE_KEY_LEN + 1, (void**) &val) == SUCCESS) { in set_output_options()
386 if (Z_TYPE_PP(val) == IS_STRING) { in set_output_options()
387 if (!strcmp(Z_STRVAL_PP(val), OUTPUT_TYPE_VALUE_PHP)) { in set_output_options()
389 } else if (!strcmp(Z_STRVAL_PP(val), OUTPUT_TYPE_VALUE_XML)) { in set_output_options()
396 …if (zend_hash_find(Z_ARRVAL_P(output_opts), VERBOSITY_KEY, VERBOSITY_KEY_LEN + 1, (void**) &val) =… in set_output_options()
397 if (Z_TYPE_PP(val) == IS_STRING) { in set_output_options()
398 if (!strcmp(Z_STRVAL_PP(val), VERBOSITY_VALUE_NO_WHITE_SPACE)) { in set_output_options()
400 } else if (!strcmp(Z_STRVAL_PP(val), VERBOSITY_VALUE_NEWLINES_ONLY)) { in set_output_options()
402 } else if (!strcmp(Z_STRVAL_PP(val), VERBOSITY_VALUE_PRETTY)) { in set_output_options()
409 …if (zend_hash_find(Z_ARRVAL_P(output_opts), VERSION_KEY, VERSION_KEY_LEN + 1, (void**) &val) == SU… in set_output_options()
410 if (Z_TYPE_PP(val) == IS_STRING) { in set_output_options()
412 if (!strcmp(Z_STRVAL_PP(val), VERSION_VALUE_XMLRPC)) { in set_output_options()
414 } else if (!strcmp(Z_STRVAL_PP(val), VERSION_VALUE_SIMPLE)) { in set_output_options()
416 } else if (!strcmp((*val)->value.str.val, VERSION_VALUE_SOAP11)) { in set_output_options()
425 …if (zend_hash_find(Z_ARRVAL_P(output_opts), ENCODING_KEY, ENCODING_KEY_LEN + 1, (void**)&val) == S… in set_output_options()
426 if (Z_TYPE_PP(val) == IS_STRING) { in set_output_options()
427 options->xmlrpc_out.xml_elem_opts.encoding = estrdup(Z_STRVAL_PP(val)); in set_output_options()
432 …if (zend_hash_find(Z_ARRVAL_P(output_opts), ESCAPING_KEY, ESCAPING_KEY_LEN + 1, (void**)&val) == S… in set_output_options()
434 if (Z_TYPE_PP(val) == IS_ARRAY) { in set_output_options()
437 zend_hash_internal_pointer_reset(Z_ARRVAL_PP(val)); in set_output_options()
441 if (zend_hash_get_current_data(Z_ARRVAL_PP(val), (void**)&iter_val) == SUCCESS) { in set_output_options()
456 zend_hash_move_forward(Z_ARRVAL_PP(val)); in set_output_options()
459 } else if (Z_TYPE_PP(val) == IS_STRING) { in set_output_options()
460 if (!strcmp(Z_STRVAL_PP(val), ESCAPING_VALUE_CDATA)) { in set_output_options()
462 } else if (!strcmp(Z_STRVAL_PP(val), ESCAPING_VALUE_NON_ASCII)) { in set_output_options()
464 } else if (!strcmp(Z_STRVAL_PP(val), ESCAPING_VALUE_NON_PRINT)) { in set_output_options()
466 } else if (!strcmp(Z_STRVAL_PP(val), ESCAPING_VALUE_MARKUP)) { in set_output_options()
525 zval* val = NULL; in PHP_to_XMLRPC_worker() local
526 XMLRPC_VALUE_TYPE type = get_zval_xmlrpc_type(in_val, &val); in PHP_to_XMLRPC_worker()
528 if (val) { in PHP_to_XMLRPC_worker()
531 if (Z_TYPE_P(val) == IS_NULL) { in PHP_to_XMLRPC_worker()
535 xReturn = XMLRPC_CreateValueBase64(key, Z_STRVAL_P(val), Z_STRLEN_P(val)); in PHP_to_XMLRPC_worker()
539 convert_to_string(val); in PHP_to_XMLRPC_worker()
540 xReturn = XMLRPC_CreateValueDateTime_ISO8601(key, Z_STRVAL_P(val)); in PHP_to_XMLRPC_worker()
543 convert_to_boolean(val); in PHP_to_XMLRPC_worker()
544 xReturn = XMLRPC_CreateValueBoolean(key, Z_LVAL_P(val)); in PHP_to_XMLRPC_worker()
547 convert_to_long(val); in PHP_to_XMLRPC_worker()
548 xReturn = XMLRPC_CreateValueInt(key, Z_LVAL_P(val)); in PHP_to_XMLRPC_worker()
551 convert_to_double(val); in PHP_to_XMLRPC_worker()
552 xReturn = XMLRPC_CreateValueDouble(key, Z_DVAL_P(val)); in PHP_to_XMLRPC_worker()
555 convert_to_string(val); in PHP_to_XMLRPC_worker()
556 xReturn = XMLRPC_CreateValueString(key, Z_STRVAL_P(val), Z_STRLEN_P(val)); in PHP_to_XMLRPC_worker()
567 ht = HASH_OF(val); in PHP_to_XMLRPC_worker()
574 MAKE_COPY_ZVAL(&val, val_arr); in PHP_to_XMLRPC_worker()
683 zval *val = XMLRPC_to_PHP(xIter); in XMLRPC_to_PHP() local
684 if (val) { in XMLRPC_to_PHP()
685 add_zval(elem, XMLRPC_GetValueID(xIter), &val); in XMLRPC_to_PHP()
1367 XMLRPC_VALUE v = XMLRPC_CreateValueDateTime_ISO8601(NULL, value->value.str.val); in set_zval_xmlrpc_type()
1453 zval** val; in get_zval_xmlrpc_type() local
1456 …find(Z_OBJPROP_P(value), OBJECT_VALUE_ATTR, sizeof(OBJECT_VALUE_ATTR), (void**) &val) == SUCCESS) { in get_zval_xmlrpc_type()
1457 *newvalue = *val; in get_zval_xmlrpc_type()
1519 zval *arg, **val; in PHP_FUNCTION() local
1531 if (zend_hash_find(Z_ARRVAL_P(arg), FAULT_CODE, FAULT_CODE_LEN + 1, (void**) &val) == SUCCESS && in PHP_FUNCTION()
1532 zend_hash_find(Z_ARRVAL_P(arg), FAULT_STRING, FAULT_STRING_LEN + 1, (void**) &val) == SUCCESS) { in PHP_FUNCTION()