Home
last modified time | relevance | path

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

1234567

/PHP-5.5/ext/date/tests/
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 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 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 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 Dbug49081.phpt2 Bug #49081 (DateTime::diff() mistake if start in January and interval > 28 days)
8 $d = $d1->diff($d2);
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 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);
H A DDateTime_days-absolute.phpt2 DateTime::diff() days -- absolute
H A DDateTime_days-massive.phpt2 DateTime::diff() days -- massive
H A DDateTime_diff-absolute.phpt2 DateTime::diff() -- absolute
/PHP-5.5/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 TSRMLS_CC); 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-5.5/ext/pcre/pcrelib/sljit/
H A DsljitNativeARM_T2_32.c244 if (diff <= 127 && diff >= -128) { in detect_jump_type()
248 if (diff <= 524287 && diff >= -524288) { in detect_jump_type()
253 diff--; in detect_jump_type()
254 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
260 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
266 if (diff <= 1023 && diff >= -1024) { in detect_jump_type()
270 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
314 diff--; in set_jump_instruction()
324 SLJIT_ASSERT(diff <= 8388607 && diff >= -8388608); in set_jump_instruction()
986 if (diff <= 0xfff && diff >= -0xfff) in can_cache()
[all …]
/PHP-5.5/ext/xmlrpc/libxmlrpc/
H A Dencodings.c84 int diff = out_ptr - outbuf; in convert() local
91 out_ptr = outbuf + diff; in convert()
/PHP-5.5/ext/pcre/
H A Dupgrade-pcre.php95 $diff = array_diff($dirorig, $dirnew); variable
97 foreach ($diff as $file) {
/PHP-5.5/tests/classes/
H A Dbug65768.phpt12 $diff1 = $dt1->diff($dti1);
16 $diff2 = $dti1->diff($dti2);
/PHP-5.5/ext/standard/
H A Dcrypt_blowfish.c553 BF_word safety, sign, diff, tmp[2]; in BF_set_key() local
593 sign = diff = 0; in BF_set_key()
615 diff |= tmp[0] ^ tmp[1]; /* Non-zero on any differences */ in BF_set_key()
630 diff |= diff >> 16; /* still zero iff exact match */ in BF_set_key()
631 diff &= 0xffff; /* ditto */ in BF_set_key()
632 diff += 0xffff; /* bit 16 set iff "diff" was non-zero (on non-match) */ in BF_set_key()
634 sign &= ~diff & safety; /* action needed? */ in BF_set_key()
/PHP-5.5/
H A D.gitignore72 diff
118 tests/*/*.diff
124 */tests/*.diff
130 */tests/*/*.diff
136 */*/tests/*.diff
142 */*/tests/*/*.diff
/PHP-5.5/ext/standard/tests/array/
H A Darray_intersect_assoc_variation6.phpt2 Test array_intersect_assoc() function : usage variations - assoc array with diff keys for 'arr2' ar…
17 echo "*** Testing array_intersect_assoc() : assoc array with diff keys to \$arr2 argument ***\n";
83 *** Testing array_intersect_assoc() : assoc array with diff keys to $arr2 argument ***
H A Darray_intersect_variation6.phpt2 Test array_intersect() function : usage variations - assoc array with diff keys for 'arr2' argument
16 echo "*** Testing array_intersect() : assoc array with diff keys to \$arr2 argument ***\n";
80 *** Testing array_intersect() : assoc array with diff keys to $arr2 argument ***

Completed in 57 milliseconds

1234567