/php-src/ext/standard/tests/strings/ |
H A D | printf_basic7.phpt | 2 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 D | printf_basic8.phpt | 2 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 D | vsprintf_basic1.phpt | 2 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 D | vsprintf_basic7.phpt | 2 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 D | vsprintf_basic7_64bit.phpt | 2 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 D | vprintf_basic9.phpt | 2 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 D | vprintf_variation17.phpt | 7 * 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 D | pack64_32.phpt | 55 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 D | printf_basic9.phpt | 2 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 D | vprintf_basic4.phpt | 2 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 D | vprintf_basic5.phpt | 2 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 D | vprintf_basic6.phpt | 2 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 D | printf_basic1.phpt | 2 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 D | vfprintf_basic9.phpt | 2 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 D | vprintf_basic1.phpt | 2 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 D | bug48227.phpt | 2 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 D | gh11658.phpt | 2 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 D | bug73426.phpt | 2 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 D | bug69089.phpt | 2 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 D | DateTime_setTime_basic1.phpt | 13 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 D | bug55253.phpt | 15 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 D | date_period-immutable.phpt | 14 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 D | idate_variation5.phpt | 2 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 D | snprintf.h | 72 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 D | zend.h | 239 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 …]
|