/php-src/ext/date/lib/ |
H A D | tm2unixtime.c | 169 time->relative.weekday = 7; in do_adjust_for_weekday() 177 …if ((time->relative.d < 0 && difference < 0) || (time->relative.d >= 0 && difference <= -time->rel… in do_adjust_for_weekday() 253 time->s += time->relative.s; in do_adjust_relative() 254 time->i += time->relative.i; in do_adjust_relative() 255 time->h += time->relative.h; in do_adjust_relative() 257 time->d += time->relative.d; in do_adjust_relative() 335 memset(&(time->relative.special), 0, sizeof(time->relative.special)); in do_adjust_special() 345 time->relative.m = 0; in do_adjust_special_early() 350 time->relative.m = 0; in do_adjust_special_early() 487 …time->have_relative = time->relative.have_weekday_relative = time->relative.have_special_relative … in timelib_update_ts() [all …]
|
H A D | interval.c | 223 t->relative.y = interval->y * bias; in timelib_add() 224 t->relative.m = interval->m * bias; in timelib_add() 225 t->relative.d = interval->d * bias; in timelib_add() 226 t->relative.h = interval->h * bias; in timelib_add() 227 t->relative.i = interval->i * bias; in timelib_add() 228 t->relative.s = interval->s * bias; in timelib_add() 303 t->relative.y = interval->y * bias; in timelib_add_wall() 304 t->relative.m = interval->m * bias; in timelib_add_wall() 305 t->relative.d = interval->d * bias; in timelib_add_wall() 307 if (t->relative.y || t->relative.m || t->relative.d) { in timelib_add_wall() [all …]
|
H A D | timelib.c | 341 d->relative.y, d->relative.m, d->relative.d, d->relative.h, d->relative.i, d->relative.s); in timelib_dump_date() 342 if (d->relative.us) { in timelib_dump_date() 343 printf(" 0.%06lld", d->relative.us); in timelib_dump_date() 345 if (d->relative.first_last_day_of != 0) { in timelib_dump_date() 346 switch (d->relative.first_last_day_of) { in timelib_dump_date() 355 if (d->relative.have_weekday_relative) { in timelib_dump_date() 356 printf(" / %d.%d", d->relative.weekday, d->relative.weekday_behavior); in timelib_dump_date() 358 if (d->relative.have_special_relative) { in timelib_dump_date() 359 switch (d->relative.special.type) { in timelib_dump_date() 361 printf(" / %lld weekday", d->relative.special.amount); in timelib_dump_date()
|
H A D | parse_date.re | 1205 s->time->relative.d = 1; 1802 s->time->relative.y = 0 - s->time->relative.y; 1803 s->time->relative.m = 0 - s->time->relative.m; 1804 s->time->relative.d = 0 - s->time->relative.d; 1805 s->time->relative.h = 0 - s->time->relative.h; 1806 s->time->relative.i = 0 - s->time->relative.i; 1807 s->time->relative.s = 0 - s->time->relative.s; 1808 s->time->relative.weekday = 0 - s->time->relative.weekday; 1813 s->time->relative.special.amount = 0 - s->time->relative.special.amount; 1957 relative [all …]
|
/php-src/ext/date/tests/ |
H A D | date_interval_non_relative_warning.phpt | 2 GH-8458 (DateInterval::createFromDateString does not warn when non-relative items are present) 28 DateMalformedIntervalStringException: String 'next weekday 15:30' contains non-relative elements 29 DateMalformedIntervalStringException: String '+5 hours noon' contains non-relative elements 30 DateMalformedIntervalStringException: String '-8 days March 23' contains non-relative elements 31 DateMalformedIntervalStringException: String '+72 seconds UTC' contains non-relative elements 34 Warning: date_interval_create_from_date_string(): String 'next weekday 15:30' contains non-relative… 36 Warning: date_interval_create_from_date_string(): String '+5 hours noon' contains non-relative elem… 38 Warning: date_interval_create_from_date_string(): String '-8 days March 23' contains non-relative e… 40 Warning: date_interval_create_from_date_string(): String '+72 seconds UTC' contains non-relative el…
|
H A D | bug50055-001.phpt | 2 Bug #50555 (DateTime::sub() allows 'relative' time modifications). 26 Warning: date_sub(): Only non-special relative time specifications are supported for subtraction in… 30 Warning: date_sub(): Only non-special relative time specifications are supported for subtraction in…
|
H A D | bug50055-002.phpt | 2 Bug #50555 (DateTime::sub() allows 'relative' time modifications) (OO). 33 DateInvalidOperationException: DateTime::sub(): Only non-special relative time specifications are s… 36 DateInvalidOperationException: DateTime::sub(): Only non-special relative time specifications are s…
|
/php-src/ext/standard/tests/array/ |
H A D | array_splice_variation3.phpt | 63 echo "relative offset - relative length - cut from beginning\n"; 66 echo "relative offset - relative length - cut from middle\n"; 69 echo "relative offset - relative length - cut nothing\n"; 362 absolute offset - relative length - cut from middle 444 absolute offset - relative length - cut nothing 567 relative offset - absolute length - cut from end 649 relative offset - absolute length - cut everything 690 relative offset - absolute length - cut nothing 731 relative offset - relative length - cut from beginning 772 relative offset - relative length - cut from middle [all …]
|
/php-src/ext/zlib/tests/ |
H A D | gzopen_variation6.phpt | 2 Test gzopen() function : variation: relative/absolute file 16 gzwrite($h, "This is a relative file"); 35 This is a relative file
|
/php-src/ext/standard/tests/file/ |
H A D | unlink_variation6.phpt | 7 echo "*** Testing unlink() : variation: contexts and relative files ***\n"; 9 // test relative directories and stream contexts. 30 *** Testing unlink() : variation: contexts and relative files ***
|
H A D | glob_variation2.phpt | 2 Test glob() function with relative path 17 echo "Testing glob() with relative paths:\n"; 36 Testing glob() with relative paths:
|
H A D | fopen_variation6.phpt | 2 Test fopen() function : variation: use include path and stream context relative/absolute file 16 fwrite($h, "This is a relative file"); 36 This is a relative file
|
H A D | rename_variation12.phpt | 2 Test rename() function : variation - various relative, absolute paths 11 /* Creating unique files in various dirs by passing relative paths to $dir arg */ 13 echo "*** Testing rename() with absolute and relative paths ***\n"; 37 // relative paths 66 *** Testing rename() with absolute and relative paths ***
|
H A D | rename_variation12-win32.phpt | 2 Test rename() function : variation - various relative, absolute paths 11 /* Creating unique files in various dirs by passing relative paths to $dir arg */ 13 echo "*** Testing rename() with absolute and relative paths ***\n"; 37 // relative paths 66 *** Testing rename() with absolute and relative paths ***
|
H A D | symlink_to_symlink.phpt | 2 symlink() using a relative path, and symlink() to a symlink 15 // symlink to a regular file using a relative dest 18 // symlink to a symlink using a relative path
|
H A D | rename_variation11-win32.phpt | 2 Test rename() function : variation - various relative, absolute paths 12 echo "*** Testing rename() with absolute and relative paths ***\n"; 37 // relative paths 69 *** Testing rename() with absolute and relative paths ***
|
H A D | tempnam_variation8-win32.phpt | 2 Test tempnam() function: usage variations - various absolute and relative paths 12 /* Creating unique files in various dirs by passing relative paths to $dir arg */ 14 echo "*** Testing tempnam() with absolute and relative paths ***\n"; 33 // relative paths 86 *** Testing tempnam() with absolute and relative paths ***
|
/php-src/ext/standard/tests/file/windows_acls/ |
H A D | bug44859_4.phpt | 23 echo "Testing file with relative path:\n"; 39 echo "Testing directory with relative path:\n"; 57 Testing file with relative path: 62 Testing directory with relative path:
|
/php-src/Zend/tests/ |
H A D | namespace_name_namespace_start.phpt | 2 Cannot use "namespace\xyz" as namespace name, due to conflict with ns-relative names 10 Parse error: syntax error, unexpected namespace-relative name "NAMEspace\xyz", expecting "{" in %s …
|
/php-src/ext/standard/tests/dir/ |
H A D | chdir_basic.phpt | 6 * Test basic functionality of chdir() with absolute and relative paths 27 echo "\n-- Testing chdir() with relative paths: --\n"; 44 -- Testing chdir() with relative paths: --
|
H A D | chdir_basic-win32-mb.phpt | 12 * Test basic functionality of chdir() with absolute and relative paths 34 echo "\n-- Testing chdir() with relative paths: --\n"; 53 -- Testing chdir() with relative paths: --
|
H A D | opendir_basic.phpt | 6 * Test basic functionality of opendir() with absolute and relative paths as $path argument 28 echo "\n-- Testing opendir() with relative paths: --\n"; 51 -- Testing opendir() with relative paths: --
|
H A D | opendir_basic-win32-mb.phpt | 12 * Test basic functionality of opendir() with absolute and relative paths as $path argument 34 echo "\n-- Testing opendir() with relative paths: --\n"; 57 -- Testing opendir() with relative paths: --
|
H A D | opendir_error2.phpt | 21 echo "\n-- Pass a non-existent relative path: --\n"; 33 -- Pass a non-existent relative path: --
|
/php-src/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_file_variation4.phpt | 2 stream_get_meta_data() with a relative file path 14 echo "\nChange to file's directory and open with a relative path:\n"; 51 Change to file's directory and open with a relative path:
|