/PHP-5.6/ext/date/tests/ |
H A D | strftime_variation8.phpt | 2 Test strftime() function : usage variation - Passing literal related strings to format argument. 5 /* Prototype : string strftime(string format [, int timestamp]) 17 $format = "%%"; 19 echo "\n-- Testing strftime() function with a literal % character to format --\n"; 20 var_dump( strftime($format) ); 21 var_dump( strftime($format, $timestamp) ); 28 -- Testing strftime() function with a literal % character to format --
|
H A D | DateTime_format_variation1.phpt | 2 Test DateTime::format() function : usage variation - Passing unexpected values to first argument $f… 5 /* Prototype : public string DateTime::format ( string $format ) 6 * Description: Returns date formatted according to given format 11 echo "*** Testing DateTime::format() : usage variation - unexpected values to first argument \$for… 100 foreach($inputs as $variation =>$format) { 102 var_dump( $object->format($format) ); 111 *** Testing DateTime::format() : usage variation - unexpected values to first argument $format*** 136 Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d 141 Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d 146 Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d [all …]
|
H A D | gmstrftime_variation6.phpt | 2 Test gmstrftime() function : usage variation - Passing time related format strings to format argume… 5 /* Prototype : string gmstrftime(string format [, int timestamp]) 20 'Hour as decimal by 24-hour format' => "%H", 21 'Hour as decimal by 12-hour format' => "%I", 23 'AM/PM format for a time' => "%p", 40 --Hour as decimal by 24-hour format-- 44 --Hour as decimal by 12-hour format-- 52 --AM/PM format for a time--
|
H A D | strftime_variation6.phpt | 2 Test strftime() function : usage variation - Passing time related format strings to format argument. 5 /* Prototype : string strftime(string format [, int timestamp]) 21 'Hour as decimal by 24-hour format' => "%H", 22 'Hour as decimal by 12-hour format' => "%I", 24 'AM/PM format for a time' => "%p", 41 --Hour as decimal by 24-hour format-- 45 --Hour as decimal by 12-hour format-- 53 --AM/PM format for a time--
|
H A D | bug40743.phpt | 6 echo $dt->format(DATE_RFC822), "\n"; 7 echo $dt->format('T e Z'), "\n"; 13 echo $dt->format(DATE_RFC822 . " e T O U"), "\n"; 16 echo $dt->format(DATE_RFC822 . " e T O U"), "\n"; 20 echo $dt->format(DATE_RFC822 . " e T O U"), "\n"; 23 echo $dt->format(DATE_RFC822 . " e T O U"), "\n"; 26 echo $dt->format(DATE_RFC822 . " e T O U"), "\n"; 29 echo $dt->format(DATE_RFC822 . " e T O U"), "\n";
|
/PHP-5.6/ext/standard/tests/strings/ |
H A D | vprintf_basic2.phpt | 2 Test vprintf() function : basic functionality - integer format 5 /* Prototype : string vprintf(string $format , array $args) 11 * Testing vprintf() : basic functionality - using integer format 14 echo "*** Testing vprintf() : basic functionality - using integer format ***\n"; 17 $format = "format"; 40 *** Testing vprintf() : basic functionality - using integer format ***
|
H A D | sprintf_basic1.phpt | 2 Test sprintf() function : basic functionality - string format 5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]]) 10 echo "*** Testing sprintf() : basic functionality - using string format ***\n"; 13 $format = "format"; 22 var_dump( sprintf($format) ); 36 *** Testing sprintf() : basic functionality - using string format *** 37 string(6) "format"
|
H A D | sprintf_basic3.phpt | 2 Test sprintf() function : basic functionality - float format 5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]]) 10 echo "*** Testing sprintf() : basic functionality - using float format ***\n"; 15 $format = "format"; 28 var_dump( sprintf($format) ); 45 *** Testing sprintf() : basic functionality - using float format *** 46 string(6) "format"
|
H A D | printf_basic1.phpt | 2 Test printf() function : basic functionality - string format 5 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] ) 6 * Description: Produces output according to format . 10 echo "*** Testing printf() : basic functionality - using string format ***\n"; 13 $format = "format"; 22 $result = printf($format); 45 *** Testing printf() : basic functionality - using string format *** 48 format
|
H A D | printf_basic7.phpt | 2 Test printf() function : basic functionality - unsigned format 11 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] ) 12 * Description: Produces output according to format . 16 echo "*** Testing printf() : basic functionality - using unsigned format ***\n"; 20 $format = "format"; 29 $result = printf($format); 51 *** Testing printf() : basic functionality - using unsigned format *** 54 format
|
H A D | printf_basic8.phpt | 2 Test printf() function : basic functionality - octal format 11 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] ) 12 * Description: Produces output according to format . 16 echo "*** Testing printf() : basic functionality - using octal format ***\n"; 19 $format = "format"; 28 $result = printf($format); 50 *** Testing printf() : basic functionality - using octal format *** 53 format
|
H A D | printf_basic9.phpt | 2 Test printf() function : basic functionality - hexadecimal format 5 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] ) 6 * Description: Produces output according to format . 10 echo "*** Testing printf() : basic functionality - using hexadecimal format ***\n"; 14 // Initialising different format strings 15 $format = "format"; 29 $result = printf($format); 60 *** Testing printf() : basic functionality - using hexadecimal format *** 63 format
|
H A D | vsprintf_basic9.phpt | 2 Test vsprintf() function : basic functionality - hexadecimal format 5 /* Prototype : string vsprintf(string $format , array $args) 10 echo "*** Testing vsprintf() : basic functionality - using hexadecimal format ***\n"; 12 // Initialising different format strings 13 $format = "format"; 38 *** Testing vsprintf() : basic functionality - using hexadecimal format ***
|
H A D | vsprintf_basic8.phpt | 2 Test vsprintf() function : basic functionality - octal format 5 /* Prototype : string vsprintf(string $format , array $args) 10 echo "*** Testing vsprintf() : basic functionality - using octal format ***\n"; 13 $format = "format"; 28 *** Testing vsprintf() : basic functionality - using octal format ***
|
H A D | vprintf_basic8.phpt | 2 Test vprintf() function : basic functionality - octal format 5 /* Prototype : string vprintf(string $format , array $args) 10 echo "*** Testing vprintf() : basic functionality - using octal format ***\n"; 13 $format = "format"; 36 *** Testing vprintf() : basic functionality - using octal format ***
|
H A D | vsprintf_basic4.phpt | 2 Test vsprintf() function : basic functionality - bool format 5 /* Prototype : string vsprintf(string $format , array $args) 10 echo "*** Testing vsprintf() : basic functionality - using bool format ***\n"; 13 $format = "format"; 28 *** Testing vsprintf() : basic functionality - using bool format ***
|
H A D | vsprintf_basic5.phpt | 2 Test vsprintf() function : basic functionality - char format 5 /* Prototype : string vsprintf(string $format , array $args) 10 echo "*** Testing vsprintf() : basic functionality - using char format ***\n"; 13 $format = "format"; 28 *** Testing vsprintf() : basic functionality - using char format ***
|
H A D | vsprintf_basic6.phpt | 2 Test vsprintf() function : basic functionality - exponential format 5 /* Prototype : string vsprintf(string $format , array $args) 10 echo "*** Testing vsprintf() : basic functionality - using exponential format ***\n"; 13 $format = "format"; 28 *** Testing vsprintf() : basic functionality - using exponential format ***
|
H A D | vfprintf_basic2.phpt | 2 Test vfprintf() function : basic functionality - integer format 5 /* Prototype : int vfprintf ( resource $handle , string $format , array $args ) 11 * Testing vfprintf() : basic functionality - using integer format 14 echo "*** Testing vfprintf() : basic functionality - using integer format ***\n"; 17 $format = "format"; 47 *** Testing vfprintf() : basic functionality - using integer format ***
|
H A D | printf_basic3.phpt | 2 Test printf() function : basic functionality - float format 5 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] ) 6 * Description: Produces output according to format . 10 echo "*** Testing printf() : basic functionality - using float format ***\n"; 15 $format = "format"; 28 $result = printf($format); 59 *** Testing printf() : basic functionality - using float format *** 62 format
|
H A D | vprintf_variation15.phpt | 9 /* Prototype : string vprintf(string format, array args) 16 * are passed to the '$format' and '$args' arguments of the function 30 // Arrays of unsigned values for the format defined in $format. 31 // Each sub array contains unsigned values which correspond to each format string in $format 40 // looping to test vprintf() with different unsigned formats from the above $format array 43 foreach($formats as $format) { 45 $result = vprintf($format, $args_array[$counter-1]);
|
H A D | vprintf_variation15_64bit.phpt | 9 /* Prototype : string vprintf(string format, array args) 16 * are passed to the '$format' and '$args' arguments of the function 30 // Arrays of unsigned values for the format defined in $format. 31 // Each sub array contains unsigned values which correspond to each format string in $format 40 // looping to test vprintf() with different unsigned formats from the above $format array 43 foreach($formats as $format) { 45 $result = vprintf($format, $args_array[$counter-1]);
|
H A D | vprintf_variation3.phpt | 5 /* Prototype : string vprintf(string format, array args) 12 * the '$format' and '$args' arguments of the function 30 // Arrays of int values for the format defined in $format. 31 // Each sub array contains int values which correspond to each format string in $format 44 // looping to test vprintf() with different int formats from the above $format array 47 foreach($formats as $format) { 49 $result = vprintf($format, $args_array[$counter-1]);
|
/PHP-5.6/ext/intl/dateformat/ |
H A D | dateformat_format_object.cpp | 64 **format = NULL; in PHP_FUNCTION() local 77 &object, &format, &locale_str, &locale_len) == FAILURE) { in PHP_FUNCTION() 85 if (format == NULL || Z_TYPE_PP(format) == IS_NULL) { in PHP_FUNCTION() 87 } else if (Z_TYPE_PP(format) == IS_ARRAY) { in PHP_FUNCTION() 88 HashTable *ht = Z_ARRVAL_PP(format); in PHP_FUNCTION() 117 } else if (Z_TYPE_PP(format) == IS_LONG) { in PHP_FUNCTION() 118 if (!valid_format(format)) { in PHP_FUNCTION() 126 convert_to_string_ex(format); in PHP_FUNCTION() 127 if (Z_STRLEN_PP(format) == 0) { in PHP_FUNCTION() 179 UnicodeString(Z_STRVAL_PP(format), Z_STRLEN_PP(format), in PHP_FUNCTION() [all …]
|
/PHP-5.6/ext/intl/tests/ |
H A D | bug48227.phpt | 2 Bug #48227 (NumberFormatter::format leaks memory) 9 var_dump($x->format('')); 10 var_dump($x->format(1)); 11 var_dump($x->format(NULL)); 12 var_dump($x->format($x));
|