/php-src/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 | gh9866.phpt | 2 Bug GH-9866 (Time zone bug with \DateTimeInterface::diff()) 9 $dateInterval = $startDate->diff($endDate, true); 17 $diff = $start->diff($end); 18 echo $diff->format("%R %Y %M %D (%a) %H %I %S %F"), "\n";
|
H A D | bug74524.phpt | 2 Bug #74524 (Date diff is bad calculated, in same time zone) 10 $diff = $a->diff($b); 11 print_r($diff);
|
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 | bug71826.phpt | 2 Bug #71826 (DateTime::diff confuse on timezone 'Asia/Tokyo') 8 $a = (new DateTime('2015-2-1'))->diff(new DateTime('2015-3-1')); 12 $b = (new DateTime('2015-3-1'))->diff(new DateTime('2015-3-29')); 16 $c = (new DateTime('2015-4-1'))->diff(new DateTime('2015-4-29'));
|
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 | bug79452.phpt | 2 Bug #79452 (DateTime::diff() generates months differently between time zones) 10 var_dump($from->diff($to)->m); 17 var_dump($from->diff($to)->m);
|
H A D | bug81273.phpt | 12 $diff = $auz->diff($us); 14 var_dump($diff->h);
|
H A D | bug76032.phpt | 2 Bug #76032 (DateTime->diff having issues with leap days for timezones ahead of UTC) 11 var_dump($d->diff($a)->y); 18 var_dump($d->diff($a)->y);
|
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 | bug65003.phpt | 2 Bug #65003 (Wrong date diff) 13 $interval = $datetime2->diff($datetime1); 16 $interval = $datetime4->diff($datetime3);
|
H A D | bug66545.phpt | 15 $diff = $d1->diff($d2); 16 print_r($diff);
|
H A D | bug81458.phpt | 8 var_dump($first->diff($second)->days); 9 var_dump($first->diff($second)->d); 15 var_dump($a->diff($b)->days);
|
H A D | bug81263.phpt | 2 Bug #81263 (Wrong result from DateTimeImmutable::diff) 9 print_r($dt2->diff($dt1)); 10 print_r($dt1->diff($dt2));
|
H A D | bug71700.phpt | 2 Bug #71700 (Extra day on diff between begin and end of march 2016) 10 $diff = date_diff($date1, $date2, true); 12 var_dump($diff);
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bd2.phpt | 21 * Backward Transitions, diff(). 28 . ' = ' . $start->diff($end)->format('P%dDT%hH%iM%sS') . "\n"; 34 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 40 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 46 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 52 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
|
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 | bug80974.phpt | 2 Bug #80974: Wrong diff between 2 dates in different timezones 8 echo $dtVancouver->diff($dtToronto)->format('%h');
|
/php-src/ext/bcmath/libbcmath/src/ |
H A D | sub.c | 44 bc_num diff = NULL; in bc_sub() local 47 diff = _bc_do_add(n1, n2); in bc_sub() 48 diff->n_sign = n1->n_sign; in bc_sub() 55 diff = _bc_do_sub(n2, n1); in bc_sub() 56 diff->n_sign = (n2->n_sign == PLUS ? MINUS : PLUS); in bc_sub() 61 diff = bc_new_num (1, res_scale); in bc_sub() 66 diff = _bc_do_sub(n1, n2); in bc_sub() 67 diff->n_sign = n1->n_sign; in bc_sub() 72 return diff; in bc_sub()
|
H A D | sqrt.c | 64 bc_num guess, guess1, point5, diff; in bc_sqrt() local 68 bc_init_num(&diff); in bc_sqrt() 99 bc_sub_ex(guess, guess1, &diff, cscale + 1); in bc_sqrt() 100 if (bc_is_near_zero(diff, cscale)) { in bc_sqrt() 115 bc_free_num (&diff); in bc_sqrt()
|
/php-src/ |
H A D | .gitattributes | 16 # Configure proper diff drivers to improve the context lines in the output 17 # of git diff and to improve token splitting for --word-diff. 18 *.phpt diff=php 19 *.php diff=php 20 *.[ch] diff=cpp 22 # Collapse generated files within git and pull request diff. 23 **/*_arginfo.h linguist-generated -diff 24 /main/gdb_inlined_script.c linguist-generated -diff 25 /Zend/zend_vm_execute.h linguist-generated -diff 26 /Zend/zend_vm_handlers.h linguist-generated -diff [all …]
|
/php-src/Zend/tests/parameter_default_values/ |
H A D | internal_declaration_error_false.phpt | 8 public function diff(): DateInterval; 12 …rror: Declaration of MyDateTimeInterface::diff(): DateInterval must be compatible with DateTimeInt…
|
/php-src/ext/standard/tests/http/ |
H A D | bug76342.phpt | 24 $diff = microtime(true) - $start; 25 if ($diff >= 2 * $timeout) { 26 echo "FAIL: $diff\n";
|