Lines Matching refs:ctx_value

70 	long ctx_value;  in php_filter_parse_int()  local
90 ctx_value = ((sign)?-1:1) * ((*(str++)) - '0'); in php_filter_parse_int()
104 if ( (!sign) && ctx_value <= (LONG_MAX-digit)/10 ) { in php_filter_parse_int()
105 ctx_value = (ctx_value * 10) + digit; in php_filter_parse_int()
106 } else if ( sign && ctx_value >= (LONG_MIN+digit)/10) { in php_filter_parse_int()
107 ctx_value = (ctx_value * 10) - digit; in php_filter_parse_int()
116 *ret = ctx_value; in php_filter_parse_int()
122 unsigned long ctx_value = 0; in php_filter_parse_octal() local
129 if ((ctx_value > ((unsigned long)(~(long)0)) / 8) || in php_filter_parse_octal()
130 ((ctx_value = ctx_value * 8) > ((unsigned long)(~(long)0)) - n)) { in php_filter_parse_octal()
133 ctx_value += n; in php_filter_parse_octal()
139 *ret = (long)ctx_value; in php_filter_parse_octal()
145 unsigned long ctx_value = 0; in php_filter_parse_hex() local
159 if ((ctx_value > ((unsigned long)(~(long)0)) / 16) || in php_filter_parse_hex()
160 ((ctx_value = ctx_value * 16) > ((unsigned long)(~(long)0)) - n)) { in php_filter_parse_hex()
163 ctx_value += n; in php_filter_parse_hex()
166 *ret = (long)ctx_value; in php_filter_parse_hex()
178 long ctx_value; in php_filter_int() local
202 ctx_value = 0; in php_filter_int()
210 if (php_filter_parse_hex(p, len, &ctx_value TSRMLS_CC) < 0) { in php_filter_int()
214 if (php_filter_parse_octal(p, len, &ctx_value TSRMLS_CC) < 0) { in php_filter_int()
221 if (php_filter_parse_int(p, len, &ctx_value TSRMLS_CC) < 0) { in php_filter_int()
226 …if (error > 0 || (min_range_set && (ctx_value < min_range)) || (max_range_set && (ctx_value > max_… in php_filter_int()
231 Z_LVAL_P(value) = ctx_value; in php_filter_int()