Home
last modified time | relevance | path

Searched refs:lval (Results 1 – 25 of 32) sorted by relevance

12

/PHP-7.1/Zend/
H A Dzend_multiply.h27 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ argument
34 else (lval) = __tmpvar; \
39 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ argument
46 else (lval) = __tmpvar; \
51 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ argument
59 else (lval) = __tmpvar; \
64 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ argument
71 (lval) = __lres; \
87 (lval) = __low; \
100 (lval) = (long) __result; \
[all …]
H A Dzend_constants.h42 #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)… argument
49 …LONG_CONSTANT(ns, name, lval, flags) zend_register_long_constant(ZEND_NS_NAME(ns, name), sizeof(Z… argument
56 …define REGISTER_MAIN_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(… argument
74 ZEND_API void zend_register_long_constant(const char *name, size_t name_len, zend_long lval, int fl…
H A Dzend_ini_scanner.l158 zend_long lval; in convert_to_number() local
161 if ((type = is_numeric_string_ex(str, str_len, &lval, &dval, 0, &overflow)) != 0) { in convert_to_number()
163 ZVAL_LONG(retval, lval); in convert_to_number()
314 static void zend_ini_escape_string(zval *lval, char *str, int len, char quote_type) in zend_ini_escape_string() argument
319 zend_ini_copy_value(lval, str, len); in zend_ini_escape_string()
322 s = t = Z_STRVAL_P(lval); in zend_ini_escape_string()
323 end = s + Z_STRLEN_P(lval); in zend_ini_escape_string()
342 Z_STRLEN_P(lval)--; in zend_ini_escape_string()
H A Dzend_ast.h255 static zend_always_inline zend_ast *zend_ast_create_zval_from_long(zend_long lval) { in zend_ast_create_zval_from_long() argument
257 ZVAL_LONG(&zv, lval); in zend_ast_create_zval_from_long()
H A Dzend_operators.c766 zend_long lval; in _zval_get_long_func_ex() local
774 return lval; in _zval_get_long_func_ex()
2363 zend_long lval; in increment_function() local
2371 double d = (double)lval; in increment_function()
2374 ZVAL_LONG(op1, lval+1); in increment_function()
2423 zend_long lval; in decrement_function() local
2443 if (lval == ZEND_LONG_MIN) { in decrement_function()
2444 double d = (double)lval; in decrement_function()
2447 ZVAL_LONG(op1, lval-1); in decrement_function()
2979 if (lval) {
[all …]
H A Dzend_operators.h91 …FASTCALL _is_numeric_string_ex(const char *str, size_t length, zend_long *lval, double *dval, int …
140 …end_uchar is_numeric_string_ex(const char *str, size_t length, zend_long *lval, double *dval, int … in is_numeric_string_ex() argument
145 return _is_numeric_string_ex(str, length, lval, dval, allow_errors, oflow_info); in is_numeric_string_ex()
148 …e zend_uchar is_numeric_string(const char *str, size_t length, zend_long *lval, double *dval, int … in is_numeric_string() argument
149 return is_numeric_string_ex(str, length, lval, dval, allow_errors, NULL); in is_numeric_string()
152 ZEND_API zend_uchar ZEND_FASTCALL is_numeric_str_function(const zend_string *str, zend_long *lval, …
H A Dzend_ini_scanner.c160 zend_long lval; in convert_to_number() local
163 if ((type = is_numeric_string_ex(str, str_len, &lval, &dval, 0, &overflow)) != 0) { in convert_to_number()
165 ZVAL_LONG(retval, lval); in convert_to_number()
316 static void zend_ini_escape_string(zval *lval, char *str, int len, char quote_type) in zend_ini_escape_string() argument
321 zend_ini_copy_value(lval, str, len); in zend_ini_escape_string()
324 s = t = Z_STRVAL_P(lval); in zend_ini_escape_string()
325 end = s + Z_STRLEN_P(lval); in zend_ini_escape_string()
344 Z_STRLEN_P(lval)--; in zend_ini_escape_string()
H A Dzend_constants.c187 ZEND_API void zend_register_long_constant(const char *name, size_t name_len, zend_long lval, int fl… in zend_register_long_constant() argument
191 ZVAL_LONG(&c.value, lval); in zend_register_long_constant()
/PHP-7.1/ext/sockets/
H A Dsockaddr_conv.c64 zend_long lval = 0; in php_set_inet6_addr() local
68 if (IS_LONG == is_numeric_string(scope, strlen(scope), &lval, &dval, 0)) { in php_set_inet6_addr()
69 if (lval > 0 && (zend_ulong)lval <= UINT_MAX) { in php_set_inet6_addr()
70 scope_id = lval; in php_set_inet6_addr()
H A Dconversions.c367 zend_long lval; in from_zval_write_int() local
375 if (lval > INT_MAX || lval < INT_MIN) { in from_zval_write_int()
386 zend_long lval; in from_zval_write_uint32() local
405 zend_long lval; in from_zval_write_net_uint16() local
413 if (lval < 0 || lval > 0xFFFF) { in from_zval_write_net_uint16()
424 zend_long lval; in from_zval_write_sa_family() local
443 zend_long lval; in from_zval_write_pid_t() local
451 if (lval < 0 || (pid_t)lval != lval) { /* pid_t is signed */ in from_zval_write_pid_t()
462 zend_long lval; in from_zval_write_uid_t() local
472 if (sizeof(zend_long) > sizeof(uid_t) && (lval < 0 || (uid_t)lval != lval)) { in from_zval_write_uid_t()
[all …]
/PHP-7.1/ext/intl/collator/
H A Dcollator_is_numeric.c214 zend_uchar collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, int allo… in collator_is_numeric() argument
234 if (lval) { in collator_is_numeric()
235 *lval = local_lval; in collator_is_numeric()
278 } else if (end_ptr_long && lval) { in collator_is_numeric()
279 *lval = local_lval; in collator_is_numeric()
H A Dcollator_is_numeric.h24 zend_uchar collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, int allo…
H A Dcollator_convert.c349 zend_long lval = 0; in collator_convert_string_to_number_if_possible() local
357 …if( ( is_numeric = collator_is_numeric( (UChar*) Z_STRVAL_P(str), UCHARS( Z_STRLEN_P(str) ), &lval in collator_convert_string_to_number_if_possible()
360 ZVAL_LONG(rv, lval); in collator_convert_string_to_number_if_possible()
/PHP-7.1/ext/spl/
H A Dspl_heap.c154 zend_long lval = 0; in spl_ptr_heap_zval_max_cmp() local
155 if (spl_ptr_heap_cmp_cb_helper(object, heap_object, a, b, &lval) == FAILURE) { in spl_ptr_heap_zval_max_cmp()
159 return lval > 0 ? 1 : (lval < 0 ? -1 : 0); in spl_ptr_heap_zval_max_cmp()
178 zend_long lval = 0; in spl_ptr_heap_zval_min_cmp() local
179 if (spl_ptr_heap_cmp_cb_helper(object, heap_object, a, b, &lval) == FAILURE) { in spl_ptr_heap_zval_min_cmp()
183 return lval > 0 ? 1 : (lval < 0 ? -1 : 0); in spl_ptr_heap_zval_min_cmp()
209 zend_long lval = 0; in spl_ptr_pqueue_zval_cmp() local
210 …if (spl_ptr_heap_cmp_cb_helper((zval *)object, heap_object, a_priority_p, b_priority_p, &lval) == … in spl_ptr_pqueue_zval_cmp()
214 return lval > 0 ? 1 : (lval < 0 ? -1 : 0); in spl_ptr_pqueue_zval_cmp()
/PHP-7.1/ext/mysqlnd/
H A Dmysqlnd_ps_codec.c95 int64_t lval = 0; in ps_fetch_from_1_to_8_bytes() local
97 case 8:lval = (int64_t) sint8korr(*row);break; in ps_fetch_from_1_to_8_bytes()
102 case 4:lval = (int64_t) sint4korr(*row);break; in ps_fetch_from_1_to_8_bytes()
103 case 3:lval = (int64_t) sint3korr(*row);break; in ps_fetch_from_1_to_8_bytes()
104 case 2:lval = (int64_t) sint2korr(*row);break; in ps_fetch_from_1_to_8_bytes()
105 case 1:lval = (int64_t) *(int8_t*)*row;break; in ps_fetch_from_1_to_8_bytes()
109 if ((L64(2147483647) < (int64_t) lval) || (L64(-2147483648) > (int64_t) lval)) { in ps_fetch_from_1_to_8_bytes()
111 tmp_len = sprintf((char *)&tmp, MYSQLND_LL_SPEC, lval); in ps_fetch_from_1_to_8_bytes()
115 ZVAL_LONG(zv, (zend_long) lval); /* the cast is safe, we are in the range */ in ps_fetch_from_1_to_8_bytes()
/PHP-7.1/ext/intl/dateformat/
H A Ddateformat_format_object.cpp50 zend_long lval = Z_LVAL_P(z); in valid_format() local
52 if ((zend_long)valid_styles[i] == lval) { in valid_format()
/PHP-7.1/ext/pdo/
H A Dpdo_dbh.c670 zend_long lval; in pdo_dbh_attribute_set() local
682 lval = zval_get_long(value); in pdo_dbh_attribute_set()
683 switch (lval) { in pdo_dbh_attribute_set()
687 dbh->error_mode = lval; in pdo_dbh_attribute_set()
698 lval = zval_get_long(value); in pdo_dbh_attribute_set()
699 switch (lval) { in pdo_dbh_attribute_set()
703 dbh->desired_case = lval; in pdo_dbh_attribute_set()
729 lval = zval_get_long(value); in pdo_dbh_attribute_set()
730 if (lval == PDO_FETCH_USE_DEFAULT) { in pdo_dbh_attribute_set()
734 dbh->default_fetch_type = lval; in pdo_dbh_attribute_set()
H A Dpdo_stmt.c2493 zend_long lval; in row_prop_read() local
2502 …&& is_numeric_string_ex(Z_STRVAL_P(member), Z_STRLEN_P(member), &lval, NULL, 0, NULL) == IS_LONG) { in row_prop_read()
2503 if (lval >= 0 && lval < stmt->column_count) { in row_prop_read()
2504 fetch_value(stmt, rv, lval, NULL); in row_prop_read()
2548 zend_long lval; in row_prop_exists() local
2554 …if (is_numeric_string_ex(Z_STRVAL_P(member), Z_STRLEN_P(member), &lval, NULL, 0, NULL) == IS_LONG)… in row_prop_exists()
2555 return lval >=0 && lval < stmt->column_count; in row_prop_exists()
/PHP-7.1/ext/intl/converter/
H A Dconverter.c172 zend_long lval = Z_LVAL_P(val); in php_converter_append_toUnicode_target() local
173 if ((lval < 0) || (lval > 0x10FFFF)) { in php_converter_append_toUnicode_target()
174 … php_converter_throw_failure(objval, U_ILLEGAL_ARGUMENT_ERROR, "Invalid codepoint U+%04lx", lval); in php_converter_append_toUnicode_target()
177 if (lval > 0xFFFF) { in php_converter_append_toUnicode_target()
181 *(args->target++) = (UChar)(((lval - 0x10000) >> 10) | 0xD800); in php_converter_append_toUnicode_target()
182 *(args->target++) = (UChar)(((lval - 0x10000) & 0x3FF) | 0xDC00); in php_converter_append_toUnicode_target()
188 *(args->target++) = (UChar)lval; in php_converter_append_toUnicode_target()
/PHP-7.1/ext/pdo_mysql/
H A Dmysql_driver.c371 zend_long lval = zval_get_long(val); in pdo_mysql_set_attribute() local
372 zend_bool bval = lval? 1 : 0; in pdo_mysql_set_attribute()
399 if (lval < 0) { in pdo_mysql_set_attribute()
404 ((pdo_mysql_db_handle *)dbh->driver_data)->max_buffer_size = lval; in pdo_mysql_set_attribute()
/PHP-7.1/ext/intl/timezone/
H A Dtimezone_methods.cpp176 zend_long lval; in PHP_FUNCTION() local
179 switch (is_numeric_string(Z_STRVAL_P(arg), Z_STRLEN_P(arg), &lval, &dval, 0)) { in PHP_FUNCTION()
188 ZVAL_LONG(arg, lval); in PHP_FUNCTION()
/PHP-7.1/ext/filter/
H A Dlogical_filters.c335 zend_long lval; in php_filter_float() local
405 switch (is_numeric_string(num, p - num, &lval, &dval, 0)) { in php_filter_float()
408 ZVAL_DOUBLE(value, (double)lval); in php_filter_float()
H A Dfilter.c598 zend_long lval = zval_get_long(filter_args); in php_filter_call() local
602 filter_flags = lval; in php_filter_call()
608 filter = lval; in php_filter_call()
/PHP-7.1/ext/pdo_oci/
H A Doci_driver.c443 zend_long lval = zval_get_long(val); in oci_handle_set_attribute() local
458 dbh->auto_commit = (unsigned int)lval? 1 : 0; in oci_handle_set_attribute()
461 H->prefetch = pdo_oci_sanitize_prefetch(lval); in oci_handle_set_attribute()
/PHP-7.1/ext/curl/
H A Dinterface.c2122 zend_long lval; in _php_curl_setopt() local
2128 lval = zval_get_long(zvalue); in _php_curl_setopt()
2129 if (lval == 1) { in _php_curl_setopt()
2312 lval = zval_get_long(zvalue); in _php_curl_setopt()
2326 error = curl_easy_setopt(ch->cp, option, lval); in _php_curl_setopt()
2665 lval = zend_is_true(zvalue); in _php_curl_setopt()
2667 if (lval && PG(open_basedir) && *PG(open_basedir)) { in _php_curl_setopt()
2672 error = curl_easy_setopt(ch->cp, option, lval); in _php_curl_setopt()
2844 lval = zval_get_long(zvalue); in _php_curl_setopt()
2845 error = curl_easy_setopt(ch->cp, option, (curl_off_t)lval); in _php_curl_setopt()
[all …]

Completed in 144 milliseconds

12