Lines Matching refs:compare
131 int compare = 0; in php_version_compare() local
163 compare = sign(l1 - l2); in php_version_compare()
166 compare = compare_special_version_forms(p1, p2); in php_version_compare()
170 compare = compare_special_version_forms("#N#", p2); in php_version_compare()
172 compare = compare_special_version_forms(p1, "#N#"); in php_version_compare()
175 if (compare != 0) { in php_version_compare()
185 if (compare == 0) { in php_version_compare()
188 compare = 1; in php_version_compare()
190 compare = php_version_compare(p1, "#N#"); in php_version_compare()
194 compare = -1; in php_version_compare()
196 compare = php_version_compare("#N#", p2); in php_version_compare()
202 return compare; in php_version_compare()
213 int compare; in PHP_FUNCTION() local
222 compare = php_version_compare(v1, v2); in PHP_FUNCTION()
224 RETURN_LONG(compare); in PHP_FUNCTION()
227 RETURN_BOOL(compare == -1); in PHP_FUNCTION()
230 RETURN_BOOL(compare != 1); in PHP_FUNCTION()
233 RETURN_BOOL(compare == 1); in PHP_FUNCTION()
236 RETURN_BOOL(compare != -1); in PHP_FUNCTION()
239 RETURN_BOOL(compare == 0); in PHP_FUNCTION()
242 RETURN_BOOL(compare != 0); in PHP_FUNCTION()