/php-src/ext/date/tests/ |
H A D | bug78055.phpt | 10 $period = new DatePeriod($start, $interval, $recurrences, DatePeriod::EXCLUDE_START_DATE); 11 echo $period->getRecurrences(), " ", $period->recurrences, "\n"; 13 $period = new DatePeriod($start, $interval, $recurrences); 14 echo $period->getRecurrences(), " ", $period->recurrences, "\n"; 16 $period = new DatePeriod($start, $interval, $recurrences, DatePeriod::INCLUDE_END_DATE); 17 echo $period->getRecurrences(), " ", $period->recurrences, "\n"; 19 $period = new DatePeriod($start, $interval, $end); 20 echo $period->getRecurrences(), " ", $period->recurrences, "\n"; 22 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE); 23 echo $period->getRecurrences(), " ", $period->recurrences, "\n";
|
H A D | bug65672.phpt | 13 var_dump($period->extra); 14 $period->extra = "modified"; 15 var_dump($period->extra); 18 $period->extra = []; 19 $period->extra[] = "array"; 20 var_dump($period->extra); 23 $period->dynamic1 = "dynamic"; 24 var_dump($period->dynamic1); 27 $period->dynamic2 = []; 29 var_dump($period->dynamic2); [all …]
|
H A D | DatePeriod_properties1.phpt | 11 $period = new DatePeriod($start, $interval, $end); 14 var_dump($period->recurrences); 17 var_dump($period->include_start_date); 20 var_dump($period->start == $start); 23 var_dump($period->current); 26 var_dump($period->end == $end); 29 var_dump($period->interval->format("%R%d"));
|
H A D | date_period_unset_property.phpt | 10 $period = new MyDatePeriod(new DateTimeImmutable("now"), DateInterval::createFromDateString("tomorr… 12 unset($period->prop); 15 $period->prop; 21 unset($period->start); 27 unset($period->current); 33 unset($period->end); 39 unset($period->interval); 45 unset($period->recurrences); 51 unset($period->include_start_date); 57 unset($period->include_end_date);
|
H A D | DatePeriod_getter.phpt | 10 $period = new DatePeriod($start, $interval, $end); 13 var_dump($period->getStartDate()->format('Y-m-d H:i:s')); 14 var_dump($period->getStartDate()->getTimeZone()->getName()); 16 var_dump($period->getEndDate()->format('Y-m-d H:i:s')); 17 var_dump($period->getEndDate()->getTimeZone()->getName()); 19 var_dump($period->getDateInterval()->format('%R%y-%m-%d-%h-%i-%s')); 20 var_dump($period->getRecurrences());
|
H A D | DatePeriod_IteratorAggregate.phpt | 6 $period = new DatePeriod('R2/2012-07-01T00:00:00Z/P7D'); 7 foreach ($period as $i => $date) { 12 foreach ($period->getIterator() as $i => $date) { 17 $iter = $period->getIterator(); 33 foreach (new IteratorIterator($period) as $i => $date) { 42 $period = new MyDatePeriod1('R2/2012-07-01T00:00:00Z/P7D'); 43 foreach ($period as $i => $date) { 55 $period = new MyDatePeriod2('R2/2012-07-01T00:00:00Z/P7D'); 56 foreach ($period as $i => $notDate) {
|
H A D | bug74639.phpt | 10 $period = new DatePeriod($start, $interval, $end); 11 $clonedPeriod = clone $period; 14 if ($period->getStartDate() != $clonedPeriod->getStartDate()) { 18 if ($period->getEndDate() != $clonedPeriod->getEndDate()) {
|
H A D | DatePeriod_no_advance_on_valid.phpt | 9 $period = new DatePeriod($start, $interval, $end); 10 $iterator = $period->getIterator(); 23 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE); 24 $iterator = $period->getIterator();
|
H A D | date_period_properties.phpt | 10 $period = MyDatePeriod::createFromISO8601String("R4/2012-07-01T00:00:00Z/P7D"); 12 var_dump($period); 13 var_dump(json_encode($period)); 14 var_dump(serialize($period)); 15 var_dump(get_object_vars($period)); 16 var_dump(var_export($period)); 17 var_dump((array) ($period));
|
H A D | DatePeriod_properties2.phpt | 8 $period = new DatePeriod(new DateTime, new DateInterval('P1D'), new DateTime); 21 $period->$property = "new"; 27 $period->$property[] = "extra"; 34 $period->start->modify("+1 hour");
|
H A D | bug71635.phpt | 6 $period = new DatePeriod(new DateTimeImmutable("now"), new DateInterval("P2Y4DT6H8M"), 2); 8 var_dump($period->getEndDate());
|
H A D | date_period_unserialize1.phpt | 9 $period = new DatePeriod($start, $interval, $end); 11 $period->__unserialize( 23 var_dump($period);
|
H A D | date_period_unserialize2.phpt | 9 $period = new DatePeriod($start, $interval, $end); 12 $period->__unserialize(
|
H A D | date_period_unserialize3.phpt | 9 $period = new DatePeriod($start, $interval, $end); 12 $period->__unserialize( 27 var_dump($period);
|
H A D | date_period_set_state1.phpt | 6 $period = DatePeriod::__set_state( 18 var_dump($period);
|
/php-src/ext/date/lib/ |
H A D | parse_iso_intervals.re | 79 timelib_rel_time *period; 243 period 269 s->period->i = nr; 271 s->period->m = nr; 399 in.period->y = 0; 400 in.period->d = 0; 401 in.period->m = 0; 402 in.period->h = 0; 403 in.period->i = 0; 404 in.period->s = 0; [all …]
|
H A D | parse_iso_intervals.c | 81 timelib_rel_time *period; member 318 s->period->i = nr; in scan() 320 s->period->m = nr; in scan() 1041 in.period->y = 0; in timelib_strtointerval() 1042 in.period->d = 0; in timelib_strtointerval() 1043 in.period->m = 0; in timelib_strtointerval() 1044 in.period->h = 0; in timelib_strtointerval() 1045 in.period->i = 0; in timelib_strtointerval() 1046 in.period->s = 0; in timelib_strtointerval() 1047 in.period->weekday = 0; in timelib_strtointerval() [all …]
|
/php-src/ext/standard/tests/serialize/ |
H A D | bug62373.phpt | 11 $period = $size_of_ce << 5; 12 for ($i = 0; $i < $period * 3; $i++) {
|
/php-src/ext/standard/ |
H A D | user_filters.c | 241 char *period; in user_filter_factory_create() local 248 if ((period = strrchr(filtername, '.'))) { in user_filter_factory_create() 253 period = wildcard + (period - filtername); in user_filter_factory_create() 254 while (period) { in user_filter_factory_create() 255 ZEND_ASSERT(period[0] == '.'); in user_filter_factory_create() 256 period[1] = '*'; in user_filter_factory_create() 257 period[2] = '\0'; in user_filter_factory_create() 259 period = NULL; in user_filter_factory_create() 261 *period = '\0'; in user_filter_factory_create() 262 period = strrchr(wildcard, '.'); in user_filter_factory_create()
|
/php-src/main/streams/ |
H A D | filter.c | 226 char *period; in php_stream_filter_create() local 232 } else if ((period = strrchr(filtername, '.'))) { in php_stream_filter_create() 238 period = wildname + (period - filtername); in php_stream_filter_create() 239 while (period && !filter) { in php_stream_filter_create() 240 ZEND_ASSERT(period[0] == '.'); in php_stream_filter_create() 241 period[1] = '*'; in php_stream_filter_create() 242 period[2] = '\0'; in php_stream_filter_create() 247 *period = '\0'; in php_stream_filter_create() 248 period = strrchr(wildname, '.'); in php_stream_filter_create()
|
/php-src/Zend/tests/numeric_literal_separator/ |
H A D | numeric_literal_separator_004.phpt | 2 Invalid use: underscore left of period
|
H A D | numeric_literal_separator_005.phpt | 2 Invalid use: underscore right of period
|
/php-src/ext/standard/tests/strings/ |
H A D | str_decrement_errors.phpt | 22 // With period 25 // With multiple period
|
H A D | str_increment_errors.phpt | 22 // With period 25 // With multiple period
|
/php-src/Zend/tests/in-de-crement/ |
H A D | string_increment_various.phpt | 34 // With period 37 // With multiple period
|