Home
last modified time | relevance | path

Searched refs:format (Results 76 – 100 of 768) sorted by relevance

12345678910>>...31

/php-src/ext/standard/tests/strings/
H A Dprintf_basic7.phpt2 Test printf() function : basic functionality - unsigned format
11 echo "*** Testing printf() : basic functionality - using unsigned format ***\n";
15 $format = "format";
24 $result = printf($format);
45 *** Testing printf() : basic functionality - using unsigned format ***
48 format
H A Dprintf_basic8.phpt2 Test printf() function : basic functionality - octal format
11 echo "*** Testing printf() : basic functionality - using octal format ***\n";
14 $format = "format";
23 $result = printf($format);
44 *** Testing printf() : basic functionality - using octal format ***
47 format
H A Dvsprintf_basic1.phpt2 Test vsprintf() function : basic functionality - string format
5 echo "*** Testing vsprintf() : basic functionality - using string format ***\n";
8 $format = "format";
24 *** Testing vsprintf() : basic functionality - using string format ***
H A Dvsprintf_basic7.phpt2 Test vsprintf() function : basic functionality - unsigned format
9 echo "*** Testing vsprintf() : basic functionality - using unsigned format ***\n";
12 $format = "format";
27 *** Testing vsprintf() : basic functionality - using unsigned format ***
H A Dvsprintf_basic7_64bit.phpt2 Test vsprintf() function : basic functionality - unsigned format
9 echo "*** Testing vsprintf() : basic functionality - using unsigned format ***\n";
12 $format = "format";
27 *** Testing vsprintf() : basic functionality - using unsigned format ***
H A Dvprintf_basic9.phpt2 Test vprintf() function : basic functionality - hexadecimal format
5 echo "*** Testing vprintf() : basic functionality - using hexadecimal format ***\n";
7 // Initialising different format strings
8 $format = "format";
43 *** Testing vprintf() : basic functionality - using hexadecimal format ***
H A Dvprintf_variation17.phpt7 * are passed to the '$format' and '$args' arguments of the function
21 // Arrays of scientific values for the format defined in $format.
22 // Each sub array contains scientific values which correspond to each format string in $format
31 // looping to test vprintf() with different scientific formats from the above $format array
34 foreach($formats as $format) {
36 $result = vprintf($format, $args_array[$counter-1]);
H A Dpack64_32.phpt55 64-bit format codes are not available for 32-bit versions of PHP
56 64-bit format codes are not available for 32-bit versions of PHP
57 64-bit format codes are not available for 32-bit versions of PHP
58 64-bit format codes are not available for 32-bit versions of PHP
59 64-bit format codes are not available for 32-bit versions of PHP
60 64-bit format codes are not available for 32-bit versions of PHP
61 64-bit format codes are not available for 32-bit versions of PHP
62 64-bit format codes are not available for 32-bit versions of PHP
H A Dprintf_basic9.phpt2 Test printf() function : basic functionality - hexadecimal format
5 echo "*** Testing printf() : basic functionality - using hexadecimal format ***\n";
9 // Initialising different format strings
10 $format = "format";
24 $result = printf($format);
54 *** Testing printf() : basic functionality - using hexadecimal format ***
57 format
H A Dvprintf_basic4.phpt2 Test vprintf() function : basic functionality - bool format
5 echo "*** Testing vprintf() : basic functionality - using bool format ***\n";
8 $format = "format";
30 *** Testing vprintf() : basic functionality - using bool format ***
H A Dvprintf_basic5.phpt2 Test vprintf() function : basic functionality - char format
5 echo "*** Testing vprintf() : basic functionality - using char format ***\n";
8 $format = "format";
30 *** Testing vprintf() : basic functionality - using char format ***
H A Dvprintf_basic6.phpt2 Test vprintf() function : basic functionality - exponential format
5 echo "*** Testing vprintf() : basic functionality - using exponential format ***\n";
8 $format = "format";
30 *** Testing vprintf() : basic functionality - using exponential format ***
H A Dprintf_basic1.phpt2 Test printf() function : basic functionality - string format
5 echo "*** Testing printf() : basic functionality - using string format ***\n";
8 $format = "format";
17 $result = printf($format);
39 *** Testing printf() : basic functionality - using string format ***
42 format
H A Dvfprintf_basic9.phpt2 Test vfprintf) function : basic functionality - hexadecimal format
5 echo "*** Testing vfprintf) : basic functionality - using hexadecimal format ***\n";
7 // Initialising different format strings
8 $format = "format";
47 *** Testing vfprintf) : basic functionality - using hexadecimal format ***
H A Dvprintf_basic1.phpt2 Test vprintf() function : basic functionality - string format
5 echo "*** Testing vprintf() : basic functionality - using string format ***\n";
8 $format = "format";
29 *** Testing vprintf() : basic functionality - using string format ***
/php-src/ext/intl/tests/
H A Dbug48227.phpt2 Bug #48227 (NumberFormatter::format leaks memory)
11 var_dump($x->format($value));
19 NumberFormatter::format(): Argument #1 ($num) must be of type int|float, string given
22 Deprecated: NumberFormatter::format(): Passing null to parameter #1 ($num) of type int|float is dep…
24 NumberFormatter::format(): Argument #1 ($num) must be of type int|float, NumberFormatter given
H A Dgh11658.phpt2 GitHub #11658 MessageFormatter::format() leaks memory
10 $s = MessageFormatter::formatMessage('en', 'some {wrong.format}', []);
13 $s = msgfmt_format_message('en', 'some {wrong.format}', []);
17 …ntax error (parse error at offset 6, after "some {", before or at "wrong.format}") in %s on line %d
20 …ntax error (parse error at offset 6, after "some {", before or at "wrong.format}") in %s on line %d
/php-src/ext/date/tests/
H A Dbug73426.phpt2 Bug #73426 (createFromFormat with 'z' format char results in incorrect time)
8 $format = 'Y H:i:s z';
9 var_dump(DateTime::createFromFormat($format, $date));
12 $format = 'z H:i:s Y';
13 var_dump(DateTime::createFromFormat($format, $date));
H A Dbug69089.phpt2 Bug #69089 (Add support for RFC3339 extended to DateTime::format)
11 var_dump($date->format(DateTime::RFC3339_EXTENDED));
12 var_dump($date->format('u'));
13 var_dump($date->format('v'));
H A DDateTime_setTime_basic1.phpt13 echo "Initial date: " . $datetime ->format(DATE_RFC2822) . "\n";
16 echo "After modification1 " . $datetime ->format(DATE_RFC2822) . "\n";
19 echo "After modification2 " . $datetime ->format(DATE_RFC2822) . "\n";
22 echo "After modification3 " . $datetime ->format(DATE_RFC2822) . "\n";
25 echo "After modification4 " . $datetime ->format(DATE_RFC2822) . "\n";
28 echo "After modification5 " . $datetime ->format(DATE_RFC2822) . "\n";
H A Dbug55253.phpt15 echo 'Zone Type 3: ' . $date3->format('Y-m-d H:i:s T') . "\n";
16 echo 'Zone Type 2: ' . $date2->format('Y-m-d H:i:s T') . "\n";
18 echo $interval->format('Add %h hours %i minutes') . "\n";
22 echo 'Zone Type 3: ' . $date3->format('Y-m-d H:i:s T') . "\n";
23 echo 'Zone Type 2: ' . $date2->format('Y-m-d H:i:s T') . "\n";
29 echo $interval->format('Subtract %h hours %i minutes from expected') . "\n";
33 echo 'Zone Type 3: ' . $date3->format('Y-m-d H:i:s T') . "\n";
34 echo 'Zone Type 2: ' . $date2->format('Y-m-d H:i:s T') . "\n";
H A Ddate_period-immutable.phpt14 echo $dt->format( "l Y-m-d\n" );
15 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" );
16 echo $dt->format( "l Y-m-d\n\n" );
22 echo $dt->format( "l Y-m-d\n" );
23 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" );
24 echo $dt->format( "l Y-m-d\n\n" );
H A Didate_variation5.phpt2 Test idate() function : usage variation - Passing supported Time format characters to format argume…
14 '12 hour format' => 'h',
15 '24 hour format' => 'H',
35 --12 hour format--
38 --24 hour format--
/php-src/main/
H A Dsnprintf.h72 PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) ZEND_ATTRIBUTE_FORMAT(pri…
73 PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap);
76 PHPAPI int ap_php_vasprintf(char **buf, const char *format, va_list ap);
77 PHPAPI int ap_php_asprintf(char **buf, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
79 PHPAPI char * php_conv_fp(char format, double num,
134 char format, char *buf_end, size_t *len);
/php-src/Zend/
H A Dzend.h239 size_t (*printf_function)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2);
247 void (*printf_to_smart_string_function)(smart_string *buf, const char *format, va_list ap);
248 void (*printf_to_smart_str_function)(smart_str *buf, const char *format, va_list ap);
288 ZEND_API size_t zend_vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap);
290 ZEND_API zend_string *zend_vstrpprintf(size_t max_len, const char *format, va_list ap);
295 ZEND_API size_t zend_spprintf_unchecked(char **message, size_t max_len, const char *format, ...);
296 ZEND_API zend_string *zend_strpprintf_unchecked(size_t max_len, const char *format, ...);
339 extern void (*zend_printf_to_smart_string)(smart_string *buf, const char *format, va_list ap);
340 extern void (*zend_printf_to_smart_str)(smart_str *buf, const char *format, va_list ap);
352 ZEND_API ZEND_COLD void zend_error_unchecked(int type, const char *format, ...);
[all …]

Completed in 26 milliseconds

12345678910>>...31