/php-src/ext/standard/ |
H A D | versioning.c | 127 int compare = 0; in php_version_compare() local 171 if (compare != 0) { in php_version_compare() 181 if (compare == 0) { in php_version_compare() 184 compare = 1; in php_version_compare() 190 compare = -1; in php_version_compare() 198 return compare; in php_version_compare() 209 int compare; in PHP_FUNCTION() local 220 RETURN_LONG(compare); in PHP_FUNCTION() 226 RETURN_BOOL(compare != 1); in PHP_FUNCTION() 229 RETURN_BOOL(compare == 1); in PHP_FUNCTION() [all …]
|
/php-src/ext/date/tests/ |
H A D | DateTimeZone_compare_basic1.phpt | 2 Test of compare object handler for DateTimeZone objects 27 echo "compare $timezone1 with $timezone2\n"; 53 compare +0200 with +0200 57 compare +0200 with -0200 61 compare EST with EST 65 compare EST with PST 69 compare Europe/Amsterdam with Europe/Amsterdam 73 compare Europe/Amsterdam with Europe/Berlin 77 DateException: Cannot compare two different kinds of DateTimeZone objects 78 DateObjectError: Trying to compare uninitialized DateTimeZone objects
|
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"; 53 Simple test for DateTime compare object handler 55 -- All the following tests should compare equal -- 64 -- The following test should still compare equal -- 67 -- All the following tests should now compare NOT equal -- [all …]
|
H A D | bug70810.phpt | 19 Warning: Cannot compare DateInterval objects in %s on line %d 22 Warning: Cannot compare DateInterval objects in %s on line %d 25 Warning: Cannot compare DateInterval objects in %s on line %d 28 Warning: Cannot compare DateInterval objects in %s on line %d 31 Warning: Cannot compare DateInterval objects in %s on line %d 34 Warning: Cannot compare DateInterval objects in %s on line %d
|
H A D | DateTimeZone_compare.phpt | 2 DateTimeZone compare handler 43 DateObjectError: Trying to compare uninitialized DateTimeZone objects 44 DateObjectError: Trying to compare uninitialized DateTimeZone objects 45 DateException: Cannot compare two different kinds of DateTimeZone objects 46 DateException: Cannot compare two different kinds of DateTimeZone objects
|
H A D | DateTime_compare.phpt | 2 DateTime/DateTimeImmutable compare handler 45 DateObjectError: Trying to compare an incomplete DateTime or DateTimeImmutable object 46 DateObjectError: Trying to compare an incomplete DateTime or DateTimeImmutable object 47 DateObjectError: Trying to compare an incomplete DateTime or DateTimeImmutable object 48 DateObjectError: Trying to compare an incomplete DateTime or DateTimeImmutable object
|
/php-src/ext/spl/tests/ |
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_011.phpt | 2 SPL: SplHeap with overridden compare() 6 public function compare($a, $b): int { 7 return -parent::compare($a,$b); 18 public function compare($a, $b): int { 19 return -parent::compare($a,$b);
|
H A D | bug69737.phpt | 2 Bug #69737 (Segfault when SplMinHeap::compare produces fatal error) 6 public function compare($a, $b): int { 18 #0 [internal function]: SplMinHeap1->compare(1, 6)
|
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): int { 17 // insert 2 elements to hit our overridden compare
|
H A D | SplHeap_with_by_reference_compare.phpt | 2 SplHeap using a compare function returning by-reference 6 public function &compare($a, $b): int {
|
/php-src/ext/bcmath/tests/number/methods/ |
H A D | compare_arg_error.phpt | 2 BcMath\Number compare() arg error 19 $num->compare($val); 28 BcMath\Number::compare(): Argument #1 ($num) is not well-formed 31 BcMath\Number::compare(): Argument #1 ($num) must be of type int, string, or BcMath\Number, array g… 34 BcMath\Number::compare(): Argument #1 ($num) must be of type int, string, or BcMath\Number, stdClas… 42 Deprecated: BcMath\Number::compare(): Passing null to parameter #1 ($num) of type BcMath\Number|str…
|
H A D | round.phpt | 24 if ($method_ret->compare($func_ret) !== 0) { 38 if ($method_ret->compare($func_ret) !== 0) {
|
/php-src/Zend/tests/ |
H A D | methods-on-non-objects-usort.phpt | 13 return $comparator->compare($a, $b); 24 string(43) "Call to a member function compare() on null" 26 string(43) "Call to a member function compare() on null" 28 string(43) "Call to a member function compare() on null" 30 string(43) "Call to a member function compare() on null"
|
H A D | runtime_compile_time_binary_operands.phpt | 121 $compare = "@($op1_p $operator $op2_p)"; 125 …$line .= "if (" . ($result === "(NAN)" ? "!is_nan($compare)" : "$compare !== $result") . ") { $err… 128 …$line .= "try { $compare; $error } catch (Error \$e) { if (\$e->getMessage() !== $msg) { $error } … 137 $compare = "@($operator $op_p)"; 141 …$line .= "if (" . ($result === "(NAN)" ? "!is_nan($compare)" : "$compare !== $result") . ") { $err… 144 …$line .= "try { $compare; $error } catch (Error \$e) { if (\$e->getMessage() !== $msg) { $error } …
|
/php-src/tests/lang/ |
H A D | compare_objects_basic1.phpt | 2 Test standard 'compare' object handler 6 echo "Simple test for standard compare object handler\n"; 26 // Define a bunch of objects all of which will use standard compare object handler 33 echo "\n-- The following compare should return TRUE --\n"; 46 Simple test for standard compare object handler 48 -- The following compare should return TRUE --
|
H A D | compare_objects_basic2.phpt | 2 Test object compare when object handler different 9 echo "Simple test comparing two objects with different compare callback handler\n"; 20 Simple test comparing two objects with different compare callback handler
|
/php-src/ext/spl/ |
H A D | spl_heap.stub.php | 15 public function compare(mixed $priority1, mixed $priority2): int {} function in SplPriorityQueue 123 abstract protected function compare(mixed $value1, mixed $value2): int; function in SplHeap 135 protected function compare(mixed $value1, mixed $value2): int {} function in SplMinHeap 141 protected function compare(mixed $value1, mixed $value2): int {} function in SplMaxHeap
|
/php-src/main/ |
H A D | php_scandir.c | 52 …dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct di… in php_scandir() 105 if (compare) { in php_scandir() 106 …qsort (*namelist, nfiles, sizeof(struct dirent *), (int (*) (const void *, const void *)) compare); in php_scandir()
|
/php-src/ext/intl/tests/ |
H A D | bug60192-compare.phpt | 14 $a = $c->compare('h', 'H'); 19 #0 %s(%d): Collator->compare('h', 'H')
|
/php-src/ext/standard/tests/file/ |
H A D | stat_variation1-win32-mb.phpt | 37 // compare the self stat 41 // compare the two stats 56 // compare self stats 60 // compare the two stats
|
H A D | stat_variation1-win32.phpt | 37 // compare the self stat 41 // compare the two stats 56 // compare self stats 60 // compare the two stats
|
H A D | stat_variation4-win32.phpt | 38 // compare self stats 41 // compare the stat 56 // compare self stats 59 // compare the stat
|
H A D | stat_variation3-win32.phpt | 34 // compare self stats 37 // compare the stats 49 // compare self stats 51 // compare the stats
|
H A D | stat_variation6-win32.phpt | 37 // compare self stats 40 // compare the stat 54 // compare self stats 57 // compare the stat
|