Lines Matching refs:lval
333 zend_long lval; in from_zval_integer_common() local
341 switch (is_numeric_string(Z_STRVAL(lzval), Z_STRLEN(lzval), &lval, &dval, 0)) { in from_zval_integer_common()
349 ZVAL_LONG(&lzval, lval); in from_zval_integer_common()
371 zend_long lval; in from_zval_write_int() local
374 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_int()
379 if (lval > INT_MAX || lval < INT_MIN) { in from_zval_write_int()
385 ival = (int)lval; in from_zval_write_int()
390 zend_long lval; in from_zval_write_uint32() local
393 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_uint32()
398 if (sizeof(zend_long) > sizeof(uint32_t) && (lval < 0 || lval > 0xFFFFFFFF)) { in from_zval_write_uint32()
404 ival = (uint32_t)lval; in from_zval_write_uint32()
409 zend_long lval; in from_zval_write_net_uint16() local
412 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_net_uint16()
417 if (lval < 0 || lval > 0xFFFF) { in from_zval_write_net_uint16()
423 ival = htons((uint16_t)lval); in from_zval_write_net_uint16()
428 zend_long lval; in from_zval_write_sa_family() local
431 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_sa_family()
436 if (lval < 0 || lval > (sa_family_t)-1) { /* sa_family_t is unsigned */ in from_zval_write_sa_family()
442 ival = (sa_family_t)lval; in from_zval_write_sa_family()
449 zend_long lval; in from_zval_write_pid_t() local
452 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_pid_t()
457 if (lval < 0 || (pid_t)lval != lval) { /* pid_t is signed */ in from_zval_write_pid_t()
463 ival = (pid_t)lval; in from_zval_write_pid_t()
468 zend_long lval; in from_zval_write_uid_t() local
471 lval = from_zval_integer_common(arr_value, ctx); in from_zval_write_uid_t()
478 if (sizeof(zend_long) > sizeof(uid_t) && (lval < 0 || (uid_t)lval != lval)) { in from_zval_write_uid_t()
484 if (sizeof(zend_long) > sizeof(uid_t) && (uid_t)lval != lval) { in from_zval_write_uid_t()
491 ival = (uid_t)lval; in from_zval_write_uid_t()
1070 zend_long lval; in from_zval_write_msghdr_buffer_size() local
1073 lval = from_zval_integer_common(elem, ctx); in from_zval_write_msghdr_buffer_size()
1078 if (lval < 0 || (zend_ulong)lval > MAX_USER_BUFF_SIZE) { in from_zval_write_msghdr_buffer_size()
1080 "given " ZEND_LONG_FMT, (zend_long)MAX_USER_BUFF_SIZE, lval); in from_zval_write_msghdr_buffer_size()
1086 msghdr->msg_iov[0].iov_base = accounted_emalloc((size_t)lval, ctx); in from_zval_write_msghdr_buffer_size()
1087 msghdr->msg_iov[0].iov_len = (size_t)lval; in from_zval_write_msghdr_buffer_size()