/PHP-7.3/ext/date/tests/ |
H A D | date_sunset_error.phpt | 2 Test date_sunset() function : error conditions 11 echo "*** Testing date_sunset() : error conditions ***\n"; 22 echo "\n-- Testing date_sunset() function with Zero arguments --\n"; 23 var_dump( date_sunset() ); 25 //Test date_sunset with one more than the expected number of arguments 33 *** Testing date_sunset() : error conditions *** 35 -- Testing date_sunset() function with Zero arguments -- 37 Warning: date_sunset() expects at least 1 parameter, 0 given in %s on line %d 40 -- Testing date_sunset() function with more than expected no. of arguments -- 42 Warning: date_sunset() expects at most 6 parameters, 7 given in %s on line %d [all …]
|
H A D | date_sunset_variation9.phpt | 13 echo "*** Testing date_sunset() : usage variation ***\n"; 23 echo "\n-- Testing date_sunset() function by passing float 12.3456789000e10 value to time --\n"; 38 *** Testing date_sunset() : usage variation *** 40 -- Testing date_sunset() function by passing float 12.3456789000e10 value to time -- 42 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d 45 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d 48 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d 51 -- Testing date_sunset() function by passing float -12.3456789000e10 value to time -- 53 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d 56 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d [all …]
|
H A D | date_sunset_variation1.phpt | 2 Test date_sunset() function : usage variation - Passing unexpected values to first argument time. 11 echo "*** Testing date_sunset() : usage variation ***\n"; 108 *** Testing date_sunset() : usage variation *** 147 Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d 150 Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d 153 Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d 158 Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d 161 Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d 164 Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d 169 Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d [all …]
|
H A D | date_sunset_variation3.phpt | 2 Test date_sunset() function : usage variation - Passing unexpected values to third argument latitud… 11 echo "*** Testing date_sunset() : usage variation ***\n"; 104 *** Testing date_sunset() : usage variation *** 128 Warning: date_sunset() expects parameter 3 to be float, array given in %s on line %d 131 Warning: date_sunset() expects parameter 3 to be float, array given in %s on line %d 134 Warning: date_sunset() expects parameter 3 to be float, array given in %s on line %d 139 Warning: date_sunset() expects parameter 3 to be float, array given in %s on line %d 142 Warning: date_sunset() expects parameter 3 to be float, array given in %s on line %d 145 Warning: date_sunset() expects parameter 3 to be float, array given in %s on line %d 150 Warning: date_sunset() expects parameter 3 to be float, array given in %s on line %d [all …]
|
H A D | date_sunset_variation4.phpt | 11 echo "*** Testing date_sunset() : usage variation ***\n"; 103 *** Testing date_sunset() : usage variation *** 127 Warning: date_sunset() expects parameter 4 to be float, array given in %s on line %d 130 Warning: date_sunset() expects parameter 4 to be float, array given in %s on line %d 133 Warning: date_sunset() expects parameter 4 to be float, array given in %s on line %d 138 Warning: date_sunset() expects parameter 4 to be float, array given in %s on line %d 141 Warning: date_sunset() expects parameter 4 to be float, array given in %s on line %d 144 Warning: date_sunset() expects parameter 4 to be float, array given in %s on line %d 149 Warning: date_sunset() expects parameter 4 to be float, array given in %s on line %d 152 Warning: date_sunset() expects parameter 4 to be float, array given in %s on line %d [all …]
|
H A D | date_sunset_variation5.phpt | 2 Test date_sunset() function : usage variation - Passing unexpected values to fifth argument zenith. 11 echo "*** Testing date_sunset() : usage variation ***\n"; 103 *** Testing date_sunset() : usage variation *** 127 Warning: date_sunset() expects parameter 5 to be float, array given in %s on line %d 130 Warning: date_sunset() expects parameter 5 to be float, array given in %s on line %d 133 Warning: date_sunset() expects parameter 5 to be float, array given in %s on line %d 138 Warning: date_sunset() expects parameter 5 to be float, array given in %s on line %d 141 Warning: date_sunset() expects parameter 5 to be float, array given in %s on line %d 144 Warning: date_sunset() expects parameter 5 to be float, array given in %s on line %d 149 Warning: date_sunset() expects parameter 5 to be float, array given in %s on line %d [all …]
|
H A D | date_sunset_variation6.phpt | 11 echo "*** Testing date_sunset() : usage variation ***\n"; 103 *** Testing date_sunset() : usage variation *** 127 Warning: date_sunset() expects parameter 6 to be float, array given in %s on line %d 130 Warning: date_sunset() expects parameter 6 to be float, array given in %s on line %d 133 Warning: date_sunset() expects parameter 6 to be float, array given in %s on line %d 138 Warning: date_sunset() expects parameter 6 to be float, array given in %s on line %d 141 Warning: date_sunset() expects parameter 6 to be float, array given in %s on line %d 144 Warning: date_sunset() expects parameter 6 to be float, array given in %s on line %d 149 Warning: date_sunset() expects parameter 6 to be float, array given in %s on line %d 152 Warning: date_sunset() expects parameter 6 to be float, array given in %s on line %d [all …]
|
H A D | date_sunset_variation8.phpt | 2 Test date_sunset() function : usage variation - Checking with North and South poles when Sun is up… 5 /* Prototype : mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, … 11 echo "*** Testing date_sunset() : usage variation ***\n"; 29 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, 90, 0 ) ); 30 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) ); 31 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) ); 32 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, -90, 0 ) ); 33 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) ); 34 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) ); 40 *** Testing date_sunset() : usage variation ***
|
H A D | date_sunset_variation2.phpt | 2 Test date_sunset() function : usage variation - Passing unexpected values to second argument format. 13 echo "*** Testing date_sunset() : usage variation ***\n"; 105 *** Testing date_sunset() : usage variation *** 119 Warning: date_sunset() expects parameter 2 to be int, float given in %s on line %d 124 Warning: date_sunset() expects parameter 2 to be int, float given in %s on line %d 132 Warning: date_sunset() expects parameter 2 to be int, array given in %s on line %d 137 Warning: date_sunset() expects parameter 2 to be int, array given in %s on line %d 142 Warning: date_sunset() expects parameter 2 to be int, array given in %s on line %d 147 Warning: date_sunset() expects parameter 2 to be int, array given in %s on line %d 170 Warning: date_sunset() expects parameter 2 to be int, string given in %s on line %d [all …]
|
H A D | sunfuncts.phpt | 2 date_sunrise() and date_sunset() functions 13 echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." "; 14 echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." "; 15 echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_DOUBLE,31.76670,35.23330,90.83,2)."\n";
|
H A D | date_sunrise_and_sunset_basic.phpt | 2 Basic test for date_sunrise and date_sunset based on example in PHP manual 15 echo "Basic test for date_sunrise() and date_sunset()\n"; 18 echo date("D M d Y") . ', sunset time : ' . date_sunset(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90, … 23 Basic test for date_sunrise() and date_sunset()
|
H A D | date_sunset_variation7.phpt | 2 Test date_sunset() function : usage variation - Checking sunrise for consecutive days in specific … 5 /* Prototype : mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, … 11 echo "*** Testing date_sunset() : usage variation ***\n"; 31 …var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $value["Latitude"], $value["Longitude"], 90, $va… 33 …var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $value["Latitude"], $value["Longitude"], 90, $va… 38 *** Testing date_sunset() : usage variation ***
|
/PHP-7.3/ext/date/ |
H A D | php_date.h | 122 PHP_FUNCTION(date_sunset);
|
H A D | php_date.c | 480 PHP_FE(date_sunset, arginfo_date_sunset) 5038 PHP_FUNCTION(date_sunset) in PHP_FUNCTION() argument
|