Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 177) sorted by relevance

12345678

/PHP-7.2/ext/date/tests/
H A Dbug77097.phpt2 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 Dbug49059.phpt2 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 Dbug75222.phpt8 $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 Drfc-datetime_and_daylight_saving_time-type3-fd.phpt13 * 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 Drfc-datetime_and_daylight_saving_time-type3-bd1.phpt13 * 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 Dbug73858.phpt2 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 Ddate_time_fractions.phpt37 $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 Drfc-datetime_and_daylight_saving_time-type3-bd2.phpt23 * 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 Ddate_diff.phpt25 $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 Dbug49081.phpt2 Bug #49081 (DateTime::diff() mistake if start in January and interval > 28 days)
8 $d = $d1->diff($d2);
H A Dbug52113.phpt9 $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 Drfc-datetime_and_daylight_saving_time-type1.phpt13 * 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 Dbug45682.phpt11 $diff = date_diff($date, $other);
13 var_dump($diff);
H A Drfc-datetime_and_daylight_saving_time-type2.phpt13 * 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 Dbug52480.phpt10 // If the DateInterval object was created by DateTime::diff(), then this is the total
19 if ($expectedDiff != (array) $start->diff($end)) {
H A Dexamine_diff.inc4 * 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);
/PHP-7.2/ext/bcmath/libbcmath/src/
H A Dsub.c51 bc_num diff = NULL; local
57 diff = _bc_do_add (n1, n2, scale_min);
58 diff->n_sign = n1->n_sign;
69 diff = _bc_do_sub (n2, n1, scale_min);
70 diff->n_sign = (n2->n_sign == PLUS ? MINUS : PLUS);
75 diff = bc_new_num (1, res_scale);
76 memset (diff->n_value, 0, res_scale+1);
80 diff = _bc_do_sub (n1, n2, scale_min);
81 diff->n_sign = n1->n_sign;
88 *result = diff;
H A Dsqrt.c49 bc_num guess, guess1, point5, diff; in bc_sqrt() local
76 bc_init_num(&diff); in bc_sqrt()
110 bc_sub (guess, guess1, &diff, cscale+1); in bc_sqrt()
111 if (bc_is_near_zero (diff, cscale)) in bc_sqrt()
126 bc_free_num (&diff); in bc_sqrt()
H A Ddoaddsub.c143 bc_num diff; local
154 diff = bc_new_num (diff_len, MAX(diff_scale, scale_min));
159 diffptr = (char *) (diff->n_value + diff_len + diff_scale);
167 diffptr = (char *) (diff->n_value + diff_len + diff_scale -1);
229 _bc_rm_leading_zeros (diff);
230 return diff;
/PHP-7.2/ext/standard/tests/http/
H A Dbug76342.phpt24 $diff = microtime(true) - $start;
25 if ($diff >= 2 * $timeout) {
26 echo "FAIL: $diff\n";
/PHP-7.2/ext/pdo_pgsql/tests/
H A Dgetnotify.phpt73 $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.2/ext/mbstring/
H A Doniguruma.patch1 diff -wur oniguruma.orig/src/config.h.win32 oniguruma/src/config.h.win32
12 diff -wur oniguruma.orig/src/config.h.win64 oniguruma/src/config.h.win64
23 diff -wur oniguruma.orig/src/regint.h oniguruma/src/regint.h
/PHP-7.2/ext/xmlrpc/libxmlrpc/
H A Dencodings.c76 int diff = out_ptr - outbuf; in convert() local
83 out_ptr = outbuf + diff; in convert()
/PHP-7.2/ext/pcre/pcrelib/sljit/
H A DsljitNativeARM_T2_32.c229 sljit_sw diff; in detect_jump_type() local
247 if (diff <= 127 && diff >= -128) { in detect_jump_type()
251 if (diff <= 524287 && diff >= -524288) { in detect_jump_type()
256 diff--; in detect_jump_type()
257 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
263 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
269 if (diff <= 1023 && diff >= -1024) { in detect_jump_type()
273 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
314 jump_inst[1] = 0x8000 | COPY_BITS(diff, 17, 13, 1) | COPY_BITS(diff, 18, 11, 1) | (diff & 0x7ff); in set_jump_instruction()
319 diff--; in set_jump_instruction()
[all …]
/PHP-7.2/ext/pcre/
H A Dupgrade-pcre.php95 $diff = array_diff($dirorig, $dirnew); variable
97 foreach ($diff as $file) {

Completed in 38 milliseconds

12345678