/PHP-7.4/ext/date/tests/ |
H A D | bug77097.phpt | 2 Bug #77097 (DateTime::diff gives wrong diff when the actual diff is less than 1 second) 8 $diff = $now->diff($ago); 9 var_dump($diff->invert, $diff->s, $diff->f); 11 $diff = $ago->diff($now); 12 var_dump($diff->invert, $diff->s, $diff->f); 14 $diff = $now->diff($ago, true); 15 var_dump($diff->invert, $diff->s, $diff->f); 17 $diff = $ago->diff($now, true); 18 var_dump($diff->invert, $diff->s, $diff->f);
|
H A D | bug49059.phpt | 2 Bug #49059 (DateTime::diff() repeats previous sub() operation) 11 $diff = $date1->diff($date2); 13 print "\$diff->days after first diff: " . $diff->days . "\n"; 16 $diff = $date1->diff($date2); 19 print "\$diff->days after second diff: " . $diff->days . "\n"; 20 $diff = $date2->diff($date1); 23 print "\$diff->days after third diff: " . $diff->days . "\n"; 28 $date1 after first diff: 2009-03-27 29 $diff->days after first diff: 26 32 $diff->days after second diff: 24 [all …]
|
H A D | bug75222.phpt | 8 $diff = $dt1->diff($dt2); 9 //var_dump($diff); 10 var_dump($diff->f); 11 var_dump(get_object_vars($diff)['f']); 12 var_dump($diff->f === get_object_vars($diff)['f']);
|
H A D | rfc-datetime_and_daylight_saving_time-type3-fd.phpt | 13 * Forward Transitions, diff(). 19 . ' = ' . $start->diff($end)->format('PT%hH%iM%sS') . "\n"; 24 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 29 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 34 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 39 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 44 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 49 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bd1.phpt | 13 * Backward Transitions, diff(). 19 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 24 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 29 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 34 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 39 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
|
H A D | bug73858.phpt | 2 Bug #73858: diff() of two relative/described DateTimes is wrong 15 $d= $e->diff($s); 20 $d = $e->diff($s); 29 $d= $e->diff($s); 34 $d= $e->diff($s); 38 This test just proves that the $e date is important BUT NOT because it's the one we call the diff()… 43 $d= $s->diff($e); 49 effect on the results of the diff. By modifying the datetime with ->modify everything works as expe… 55 var_dump($e->diff($s)->days); // 30 ... and should be 30
|
H A D | date_time_fractions.phpt | 37 $diff = $dt1->diff( $dt2 ); 39 var_dump( $diff ); 41 $dt0 = $dt1->sub( $diff ); 42 $dt3 = $dt2->add( $diff ); 43 $dt4 = $dt3->add( $diff );
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bd2.phpt | 23 * Backward Transitions, diff(). 30 . ' = ' . $start->diff($end)->format('P%dDT%hH%iM%sS') . "\n"; 36 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 42 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 48 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
|
H A D | date_diff.phpt | 25 $diff = date_diff( $dates[$i], $dates[$j] ); 30 $diff->format( '%a' ), 31 $diff->format( '%y-%m-%d' ) 36 $int = new DateInterval( $diff->format( 'P%yY%mM%dD' ) );
|
H A D | bug49081.phpt | 2 Bug #49081 (DateTime::diff() mistake if start in January and interval > 28 days) 8 $d = $d1->diff($d2);
|
H A D | bug52113.phpt | 9 $diff = $start->diff($end); 10 $p = new DatePeriod($start, $diff, 2); 11 $diff_s = serialize($diff); 12 var_dump($diff, $diff_s); 13 var_export($diff);
|
H A D | bug45682.phpt | 11 $diff = date_diff($date, $other); 13 var_dump($diff);
|
H A D | rfc-datetime_and_daylight_saving_time-type1.phpt | 13 * Forward Transitions, diff(). 19 . ' = ' . $start->diff($end)->format('PT%hH%iM%sS') . "\n"; 24 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 29 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 34 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 39 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 44 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 49 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 144 * Backward Transitions, diff(). 150 . ' = ' . $start->diff($end)->format('PT%hH%iM%sS') . "\n"; [all …]
|
H A D | bug52480.phpt | 10 // If the DateInterval object was created by DateTime::diff(), then this is the total 19 if ($expectedDiff != (array) $start->diff($end)) {
|
H A D | rfc-datetime_and_daylight_saving_time-type2.phpt | 13 * Forward Transitions, diff(). 19 . ' = ' . $start->diff($end)->format('PT%hH%iM%sS') . "\n"; 24 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 29 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 34 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 39 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 44 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 49 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 144 * Backward Transitions, diff(). 150 . ' = ' . $start->diff($end)->format('PT%hH%iM%sS') . "\n"; [all …]
|
H A D | examine_diff.inc | 4 * Helper for the DateTime diff/days/math tests 19 * Provides a consistent interface for executing date diff/add/sub tests 56 $result_interval = $start->diff($end, $absolute); 62 $result_interval = $start->diff($end, $absolute);
|
H A D | DateTime_days-absolute.phpt | 2 DateTime::diff() days -- absolute
|
H A D | DateTime_days-massive.phpt | 2 DateTime::diff() days -- massive
|
/PHP-7.4/ext/bcmath/libbcmath/src/ |
H A D | sub.c | 50 bc_num diff = NULL; local 56 diff = _bc_do_add (n1, n2, scale_min); 57 diff->n_sign = n1->n_sign; 68 diff = _bc_do_sub (n2, n1, scale_min); 69 diff->n_sign = (n2->n_sign == PLUS ? MINUS : PLUS); 74 diff = bc_new_num (1, res_scale); 75 memset (diff->n_value, 0, res_scale+1); 79 diff = _bc_do_sub (n1, n2, scale_min); 80 diff->n_sign = n1->n_sign; 87 *result = diff;
|
H A D | sqrt.c | 48 bc_num guess, guess1, point5, diff; in bc_sqrt() local 75 bc_init_num(&diff); in bc_sqrt() 109 bc_sub (guess, guess1, &diff, cscale+1); in bc_sqrt() 110 if (bc_is_near_zero (diff, cscale)) in bc_sqrt() 125 bc_free_num (&diff); in bc_sqrt()
|
H A D | doaddsub.c | 142 bc_num diff; local 153 diff = bc_new_num (diff_len, MAX(diff_scale, scale_min)); 158 diffptr = (char *) (diff->n_value + diff_len + diff_scale); 166 diffptr = (char *) (diff->n_value + diff_len + diff_scale -1); 228 _bc_rm_leading_zeros (diff); 229 return diff;
|
/PHP-7.4/ext/standard/tests/http/ |
H A D | bug76342.phpt | 24 $diff = microtime(true) - $start; 25 if ($diff >= 2 * $timeout) { 26 echo "FAIL: $diff\n";
|
/PHP-7.4/ext/pdo_pgsql/tests/ |
H A D | getnotify.phpt | 73 $diff = microtime(1) - $t; 74 var_dump($diff >= 1 || 1 - abs($diff) < .05); 81 $diff = microtime(1) - $t; 82 var_dump($diff < 1 || abs(1 - abs($diff)) < .05);
|
/PHP-7.4/ext/xmlrpc/libxmlrpc/ |
H A D | encodings.c | 73 int diff = out_ptr - outbuf; in convert() local 77 out_ptr = outbuf + diff; in convert()
|
/PHP-7.4/tests/classes/ |
H A D | bug65768.phpt | 12 $diff1 = $dt1->diff($dti1); 16 $diff2 = $dti1->diff($dti2);
|