Lines Matching refs:compare
133 int compare = 0; in php_version_compare() local
165 compare = sign(l1 - l2); in php_version_compare()
168 compare = compare_special_version_forms(p1, p2); in php_version_compare()
172 compare = compare_special_version_forms("#N#", p2); in php_version_compare()
174 compare = compare_special_version_forms(p1, "#N#"); in php_version_compare()
177 if (compare != 0) { in php_version_compare()
187 if (compare == 0) { in php_version_compare()
190 compare = 1; in php_version_compare()
192 compare = php_version_compare(p1, "#N#"); in php_version_compare()
196 compare = -1; in php_version_compare()
198 compare = php_version_compare("#N#", p2); in php_version_compare()
204 return compare; in php_version_compare()
215 int compare, argc; 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()