Home
last modified time | relevance | path

Searched refs:php_val (Results 1 – 4 of 4) sorted by relevance

/third_party/protobuf/php/ext/google/protobuf/
Dconvert.c242 bool Convert_PhpToInt64(const zval *php_val, int64_t *i64) { in Convert_PhpToInt64() argument
243 switch (Z_TYPE_P(php_val)) { in Convert_PhpToInt64()
245 *i64 = Z_LVAL_P(php_val); in Convert_PhpToInt64()
248 double dbl = Z_DVAL_P(php_val); in Convert_PhpToInt64()
257 const char *buf = Z_STRVAL_P(php_val); in Convert_PhpToInt64()
260 bool ok = buftoint64(buf, buf + Z_STRLEN_P(php_val), i64); in Convert_PhpToInt64()
262 throw_conversion_exception("integer", php_val); in Convert_PhpToInt64()
267 throw_conversion_exception("integer", php_val); in Convert_PhpToInt64()
272 static bool to_double(zval *php_val, double *dbl) { in to_double() argument
273 switch (Z_TYPE_P(php_val)) { in to_double()
[all …]
Dconvert.h43 bool Convert_PhpToInt64(const zval *php_val, int64_t *i64);
49 bool Convert_PhpToUpb(zval *php_val, upb_msgval *upb_val, upb_fieldtype_t type,
67 void Convert_UpbToPhp(upb_msgval upb_val, zval *php_val, upb_fieldtype_t type,
Dmap.c152 zval *php_val; in MapField_GetUpbMap() local
157 php_val = zend_hash_get_current_data_ex(table, &pos); in MapField_GetUpbMap()
159 if (!php_val) return map; in MapField_GetUpbMap()
162 !Convert_PhpToUpbAutoWrap(php_val, &upb_val, val_type, desc, arena)) { in MapField_GetUpbMap()
Darray.c221 zval *php_val; in PHP_METHOD() local
224 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &php_val) != SUCCESS || in PHP_METHOD()
225 !Convert_PhpToUpb(php_val, &msgval, intern->type, intern->desc, arena)) { in PHP_METHOD()