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; in PHP_FUNCTION() local
224 compare = php_version_compare(v1, v2); in PHP_FUNCTION()
226 RETURN_LONG(compare); in PHP_FUNCTION()
229 RETURN_BOOL(compare == -1); in PHP_FUNCTION()
232 RETURN_BOOL(compare != 1); in PHP_FUNCTION()
235 RETURN_BOOL(compare == 1); in PHP_FUNCTION()
238 RETURN_BOOL(compare != -1); in PHP_FUNCTION()
241 RETURN_BOOL(compare == 0); in PHP_FUNCTION()
244 RETURN_BOOL(compare != 0); in PHP_FUNCTION()