/php-src/ext/date/tests/ |
H A D | bug74652.phpt | 17 foreach ( $formats as $format ) 19 $dt = new DateTimeImmutable( $format ); 20 echo $dt->format( 'Y-m-d H:i:s' ), "\n";
|
H A D | gmstrftime_variation18.phpt | 18 echo "\n-- Testing gmstrftime() function with Day of the month as decimal single digit format --\n"; 19 $format = "%e"; 20 var_dump( gmstrftime($format) ); 21 var_dump( gmstrftime($format, $timestamp) ); 27 -- Testing gmstrftime() function with Day of the month as decimal single digit format --
|
H A D | strftime_variation18.phpt | 18 echo "\n-- Testing strftime() function with Day of the month as decimal single digit format --\n"; 19 $format = "%e"; 20 var_dump( strftime($format) ); 21 var_dump( strftime($format, $timestamp) ); 26 -- Testing strftime() function with Day of the month as decimal single digit format --
|
H A D | bug49059.phpt | 9 print "\$date1 at init: " . $date1->format("Y-m-d") . "\n"; 10 print "\$date2 at init: " . $date2->format("Y-m-d") . "\n"; 12 print "\$date1 after first diff: " . $date1->format("Y-m-d") . "\n"; 15 print "\$date1 after sub: " . $date1->format("Y-m-d") . "\n"; 18 $date1->format("Y-m-d") . "\n"; 22 $date1->format("Y-m-d") . "\n";
|
H A D | bug62896.phpt | 12 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; 15 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; 21 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; 24 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; 29 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; 32 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
|
H A D | oo_002.phpt | 9 var_dump($d->format(DateTime::RFC822)); 11 var_dump($c->format(DateTime::RFC822)); 14 var_dump($d->format(DateTime::RFC822)); 15 var_dump($c->format(DateTime::RFC822));
|
H A D | bug49585.phpt | 8 var_dump($date->format('r')); 11 var_dump($date->format('r')); 12 var_dump($date->format('c'));
|
/php-src/ext/phar/tests/ |
H A D | bug79082.phpt | 16 foreach([Phar::TAR => 'tar', Phar::ZIP => 'zip'] as $format => $ext) { 18 $phar = new PharData(__DIR__ . '/test79082.' . $ext, format: $format); 26 foreach([Phar::TAR => 'tar', Phar::ZIP => 'zip'] as $format => $ext) { 28 $phar = new PharData(__DIR__ . '/test79082-d.' . $ext, format: $format);
|
/php-src/ext/intl/tests/ |
H A D | msgfmt_format_error5.phpt | 2 MessageFormatter::format() invalid date/time argument 16 var_dump($mf->format(array("foo" => new stdclass()))); 19 Warning: MessageFormatter::format(): msgfmt_format: invalid object type for date/time (only IntlCal… 21 Warning: MessageFormatter::format(): The argument for key 'foo' cannot be used as a date or time in…
|
H A D | dateformat_create_cal_arg.phpt | 17 echo $df->format($ts), "\n"; 21 echo $df->format($ts), "\n"; 26 echo $df->format($ts), "\n"; 30 echo $df->format($ts), "\n"; 34 echo $df->format($ts), "\n"; 38 echo $df->format($ts), "\n"; 41 echo $df->format($ts), "\n";
|
H A D | dateformat_create_cal_arg_variant2.phpt | 17 echo $df->format($ts), "\n"; 21 echo $df->format($ts), "\n"; 26 echo $df->format($ts), "\n"; 30 echo $df->format($ts), "\n"; 34 echo $df->format($ts), "\n"; 38 echo $df->format($ts), "\n"; 41 echo $df->format($ts), "\n";
|
H A D | dateformat_create_cal_arg_variant3.phpt | 18 echo $df->format($ts), "\n"; 22 echo $df->format($ts), "\n"; 27 echo $df->format($ts), "\n"; 31 echo $df->format($ts), "\n"; 35 echo $df->format($ts), "\n"; 39 echo $df->format($ts), "\n"; 42 echo $df->format($ts), "\n";
|
H A D | dateformat_create_cal_arg_variant4.phpt | 18 echo $df->format($ts), "\n"; 22 echo $df->format($ts), "\n"; 27 echo $df->format($ts), "\n"; 31 echo $df->format($ts), "\n"; 35 echo $df->format($ts), "\n"; 39 echo $df->format($ts), "\n"; 42 echo $df->format($ts), "\n";
|
H A D | dateformat_create_cal_arg_variant5.phpt | 17 echo $df->format($ts), "\n"; 21 echo $df->format($ts), "\n"; 26 echo $df->format($ts), "\n"; 30 echo $df->format($ts), "\n"; 34 echo $df->format($ts), "\n"; 38 echo $df->format($ts), "\n"; 41 echo $df->format($ts), "\n";
|
H A D | dateformat_timezone_arg_variations3.phpt | 17 echo $df->format($ts), "\n"; 20 echo $df->format($ts), "\n"; 23 echo $df->format($ts), "\n"; 26 echo $df->format($ts), "\n"; 30 echo $df->format($ts), "\n"; 34 echo $df->format($ts), "\n"; 37 echo $df->format($ts), "\n";
|
H A D | msgfmt_format_datetime.phpt | 2 MessageFormatter::format(): DateTime accepted to format dates and times 23 var_dump($mf->format(array($dt))); 24 var_dump($mf->format(array($dti)));
|
H A D | msgfmt_format_mixed_params.phpt | 2 MessageFormatter::format(): mixed named and numeric parameters 13 var_dump($mf->format(array(2.3, "foo" => 1.3))); 14 var_dump($mf->format(array("foo" => 1.3, 0 => 2.3)));
|
H A D | dateformat_formatObject_error.phpt | 41 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: the date/time format type is inv… 44 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: bad format; if array, it must ha… 47 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: bad format; if array, it must ha… 50 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: bad format; the date format (fir… 53 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: bad format; the time format (sec… 56 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: the format is empty in %s on lin…
|
/php-src/ext/date/ |
H A D | php_date.stub.php | 104 function date(string $format, ?int $timestamp = null): string {} argument 106 function idate(string $format, ?int $timestamp = null): int|false {} argument 109 function gmdate(string $format, ?int $timestamp = null): string {} argument 125 function strftime(string $format, ?int $timestamp = null): string|false {} argument 131 function gmstrftime(string $format, ?int $timestamp = null): string|false {} argument 172 function date_parse_from_format(string $format, string $datetime): array {} argument 181 function date_format(DateTimeInterface $object, string $format): string {} argument 317 public function format(string $format): string; function 381 public function format(string $format): string {} argument 492 public function format(string $format): string {} function in DateTimeImmutable [all …]
|
/php-src/ext/exif/tests/ |
H A D | bug72094.phpt | 14 Warning: exif_read_data(bug72094_1.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303… 16 Warning: exif_read_data(bug72094_1.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303… 18 Warning: exif_read_data(bug72094_1.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303… 20 Warning: exif_read_data(bug72094_1.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303… 22 Warning: exif_read_data(bug72094_1.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303… 24 Warning: exif_read_data(bug72094_1.jpg): Process tag(x8298=Copyright): Illegal format code 0x3030, … 38 Warning: exif_read_data(bug72094_3.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303… 40 Warning: exif_read_data(bug72094_3.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303… 42 Warning: exif_read_data(bug72094_3.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303… 44 Warning: exif_read_data(bug72094_3.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303… [all …]
|
/php-src/ext/standard/tests/image/ |
H A D | getimagesize_xbm.phpt | 2 GetImageSize() for xbm format 5 echo "*** Testing getimagesize() : xbm format ***\n"; 11 *** Testing getimagesize() : xbm format ***
|
H A D | getimagesize_wbmp.phpt | 2 GetImageSize() for wbmp format 5 echo "*** Testing getimagesize() : wbmp format ***\n"; 11 *** Testing getimagesize() : wbmp format ***
|
/php-src/main/ |
H A D | snprintf.c | 282 if (format == 'F') { in php_conv_fp() 298 if (format == 'F') { in php_conv_fp() 338 if (format != 'F') { in php_conv_fp() 343 *s++ = format; /* either e or E */ in php_conv_fp() 1094 cc = format_converter(&od, format, ap); in strx_printv() 1107 va_start(ap, format); in ap_php_slprintf() 1108 cc = strx_printv(buf, len, format, ap); in ap_php_slprintf() 1134 va_start(ap, format); in ap_php_snprintf() 1135 cc = strx_printv(buf, len, format, ap); in ap_php_snprintf() 1177 va_start(ap, format); in ap_php_asprintf() [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | printf.phpt | 14 /* Various input arrays for different format types */ 161 echo "\n Input Strings format variation array is:\n"; 180 echo "\n Input format variation array is:\n"; 593 Input Strings format variation array is: 625 Input format variation array is: 670 *** Output for '%%' as the format parameter *** 679 Unknown format specifier "-" 681 *** Output for '%F' as the format parameter *** 684 *** Output for '%X' as the format parameter *** 687 *** Output with no format parameter *** [all …]
|
H A D | printf_64bit.phpt | 14 /* Various input arrays for different format types */ 161 echo "\n Input Strings format variation array is:\n"; 180 echo "\n Input format variation array is:\n"; 593 Input Strings format variation array is: 625 Input format variation array is: 670 *** Output for '%%' as the format parameter *** 679 Unknown format specifier "-" 681 *** Output for '%F' as the format parameter *** 684 *** Output for '%X' as the format parameter *** 687 *** Output with no format parameter *** [all …]
|