/PHP-5.5/ext/standard/ |
H A D | versioning.c | 133 int compare = 0; in php_version_compare() local 165 compare = sign(l1 - l2); 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() 196 compare = -1; in php_version_compare() 204 return compare; in php_version_compare() 215 int compare, argc; in PHP_FUNCTION() local 224 RETURN_LONG(compare); in PHP_FUNCTION() 230 RETURN_BOOL(compare != 1); in PHP_FUNCTION() [all …]
|
/PHP-5.5/ext/spl/tests/ |
H A D | pqueue_compare_error.phpt | 2 SPL: Priority queue compare, illegal number of args 9 $h->compare(); 10 $h->compare(1); 11 $h->compare(1, 2, 3); 14 Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 0 given in %s 16 Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 1 given in %s 18 Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 3 given in %s
|
H A D | spl_minheap_compare_error.phpt | 2 SPL: SplMinHeap compare, illegal number of args 10 return parent::compare(); 13 return parent::compare(1); 16 return parent::compare(1, 2, 3); 26 Warning: SplMinHeap::compare() expects exactly 2 parameters, 0 given in %s 28 Warning: SplMinHeap::compare() expects exactly 2 parameters, 1 given in %s 30 Warning: SplMinHeap::compare() expects exactly 2 parameters, 3 given in %s
|
H A D | heap_011.phpt | 2 SPL: SplHeap with overriden compare() 6 public function compare($a, $b) { 7 return -parent::compare($a,$b); 18 public function compare($a, $b) { 19 return -parent::compare($a,$b);
|
H A D | pqueue_compare_basic.phpt | 2 SPL: SplPriorityQueue: test compare 9 var_dump($h->compare(4, 5) < 0); 10 var_dump($h->compare(5, 5) == 0); 11 var_dump($h->compare(5, 4) > 0);
|
H A D | heap_top_variation_002.phpt | 8 // override heap to force corruption by throwing exception in compare 10 public function compare($a, $b) { 17 // insert 2 elements to hit our overridden compare
|
H A D | heap_isempty_variation_001.phpt | 7 public function compare() { 8 return -parent::compare();
|
H A D | spl_maxheap_compare_basic.phpt | 13 return parent::compare(1); 22 Warning: SplMaxHeap::compare() expects exactly 2 parameters, %s
|
H A D | bug69737.phpt | 2 Bug #69737 (Segfault when SplMinHeap::compare produces fatal error) 6 public function compare($a, $b) {
|
H A D | spl_pq_top_error_corrupt.phpt | 11 public function compare($a, $b){ 15 return parent::compare($a, $b);
|
H A D | heap_corruption.phpt | 2 SPL: SplHeap - heap corruption via compare exception (with top element deletion) 13 public function compare($v1, $v2)
|
/PHP-5.5/ext/date/tests/ |
H A D | DateTime_compare_basic1.phpt | 2 Test of compare object handler for DateTime objects 6 echo "Simple test for DateTime compare object handler\n"; 27 echo "\n-- All the following tests should compare equal --\n"; 37 echo "\n-- The following test should still compare equal --\n"; 39 echo "\n-- All the following tests should now compare NOT equal --\n"; 44 echo "\n-- All the following tests should again compare equal --\n"; 54 Simple test for DateTime compare object handler 56 -- All the following tests should compare equal -- 65 -- The following test should still compare equal -- 68 -- All the following tests should now compare NOT equal -- [all …]
|
H A D | DateTimeZone_compare_basic1.phpt | 2 Test of compare object handler for DateTime objects 6 // NB: DateTimeZone class does not define a customized compare class handler so standard object han… 8 echo "Simple test for DateTimeZone compare object handler\n"; 29 echo "\n-- All the following tests should compare equal --\n"; 31 echo "\n-- All the following tests should compare NOT equal --\n"; 42 Simple test for DateTimeZone compare object handler 44 -- All the following tests should compare equal -- 47 -- All the following tests should compare NOT equal --
|
/PHP-5.5/tests/lang/ |
H A D | compare_objects_basic1.phpt | 2 Test standard 'compare' object handler 7 echo "Simple test for standard compare object handler\n"; 27 // Define a bunch of objects all of which will use standard compare object handler 34 echo "\n-- The following compare should return TRUE --\n"; 48 Simple test for standard compare object handler 50 -- The following compare should return TRUE --
|
H A D | compare_objects_basic2.phpt | 2 Test object compare when object handler different 10 echo "Simple test comparing two objects with different compare callback handler\n"; 22 Simple test comparing two objects with different compare callback handler
|
/PHP-5.5/Zend/ |
H A D | zend_qsort.c | 57 ZEND_API void zend_qsort_r(void *base, size_t nmemb, size_t siz, compare_r_func_t compare, void *ar… in zend_qsort_r() argument 84 for (; seg1 < seg2 && compare(begin, seg1 TSRMLS_CC, arg) > 0; in zend_qsort_r() 87 for (; seg2 >= seg1 && compare(seg2, begin TSRMLS_CC, arg) > 0; in zend_qsort_r() 121 ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC) in zend_qsort() 123 zend_qsort_r(base, nmemb, siz, (compare_r_func_t)compare, NULL TSRMLS_CC); in zend_qsort()
|
H A D | zend_qsort.h | 26 ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC); 27 ZEND_API void zend_qsort_r(void *base, size_t nmemb, size_t siz, compare_r_func_t compare, void *ar…
|
/PHP-5.5/main/ |
H A D | php_scandir.c | 60 …dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct di… in php_scandir() 114 if (compare) { in php_scandir() 115 qsort (*namelist, nfiles, sizeof(struct dirent *), compare); in php_scandir()
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | usort_error2.phpt | 36 echo "\n-- Testing usort() function with non-existent compare function --\n"; 40 echo "\n-- Testing usort() function with non-existent compare function and extra argument --\n"; 47 -- Testing usort() function with non-existent compare function -- 52 -- Testing usort() function with non-existent compare function and extra argument --
|
H A D | uasort_error.phpt | 50 echo "-- Testing uasort() function with non-existent compare function --\n"; 54 echo "-- Testing uasort() function with non-existent compare function and extra argument --\n"; 73 -- Testing uasort() function with non-existent compare function -- 77 -- Testing uasort() function with non-existent compare function and extra argument --
|
/PHP-5.5/ext/intl/tests/ |
H A D | bug60192-compare.phpt | 16 $a = $c->compare('h', 'H'); 19 Catchable fatal error: Collator::compare(): Object not initialized in %s on line %d
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | stat_variation1-win32.phpt | 42 // compare the self stat 46 // compare the two stats 61 // compare self stats 65 // compare the two stats
|
H A D | stat_variation4-win32.phpt | 43 // compare self stats 46 // compare the stat 61 // compare self stats 64 // compare the stat
|
H A D | stat_variation6-win32.phpt | 41 // compare self stats 44 // compare the stat 58 // compare self stats 61 // compare the stat
|
H A D | stat_variation3-win32.phpt | 39 // compare self stats 42 // compare the stats 54 // compare self stats 56 // compare the stats
|