Lines Matching refs:compare
127 int compare = 0; in php_version_compare() local
159 compare = ZEND_NORMALIZE_BOOL(l1 - l2); in php_version_compare()
162 compare = compare_special_version_forms(p1, p2); in php_version_compare()
166 compare = compare_special_version_forms("#N#", p2); in php_version_compare()
168 compare = compare_special_version_forms(p1, "#N#"); in php_version_compare()
171 if (compare != 0) { in php_version_compare()
181 if (compare == 0) { in php_version_compare()
184 compare = 1; in php_version_compare()
186 compare = php_version_compare(p1, "#N#"); in php_version_compare()
190 compare = -1; in php_version_compare()
192 compare = php_version_compare("#N#", p2); in php_version_compare()
198 return compare; in php_version_compare()
209 int compare; in PHP_FUNCTION() local
218 compare = php_version_compare(v1, v2); in PHP_FUNCTION()
220 RETURN_LONG(compare); in PHP_FUNCTION()
223 RETURN_BOOL(compare == -1); in PHP_FUNCTION()
226 RETURN_BOOL(compare != 1); in PHP_FUNCTION()
229 RETURN_BOOL(compare == 1); in PHP_FUNCTION()
232 RETURN_BOOL(compare != -1); in PHP_FUNCTION()
235 RETURN_BOOL(compare == 0); in PHP_FUNCTION()
238 RETURN_BOOL(compare != 0); in PHP_FUNCTION()