2006-11-24 13:33:38 +00:00
|
|
|
--TEST--
|
|
|
|
show information about extension
|
|
|
|
--SKIPIF--
|
2007-03-17 19:16:17 +00:00
|
|
|
<?php
|
|
|
|
include "skipif.inc";
|
|
|
|
if (!extension_loaded("reflection")) {
|
|
|
|
die("skip");
|
|
|
|
}
|
|
|
|
?>
|
2007-05-30 14:43:18 +00:00
|
|
|
--INI--
|
|
|
|
date.timezone=
|
2006-11-24 13:33:38 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
2007-01-20 22:12:55 +00:00
|
|
|
$php = getenv('TEST_PHP_EXECUTABLE');
|
2006-11-24 13:33:38 +00:00
|
|
|
|
2006-12-04 17:48:52 +00:00
|
|
|
var_dump(`$php -n --re unknown`);
|
|
|
|
var_dump(`$php -n --re ""`);
|
2006-11-24 13:33:38 +00:00
|
|
|
var_dump(`$php -n --re date`);
|
|
|
|
|
|
|
|
echo "Done\n";
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
|
|
|
string(44) "Exception: Extension unknown does not exist
|
|
|
|
"
|
|
|
|
string(37) "Exception: Extension does not exist
|
|
|
|
"
|
2007-05-30 14:40:24 +00:00
|
|
|
string(%d) "Extension [ <persistent> extension #%d date version %s ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Dependencies {
|
|
|
|
Dependency [ session (Optional) ]
|
|
|
|
}
|
|
|
|
|
|
|
|
- INI {
|
|
|
|
Entry [ date.timezone <ALL> ]
|
2007-05-30 14:43:18 +00:00
|
|
|
Current = ''
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
Entry [ date.default_latitude <ALL> ]
|
|
|
|
Current = '%s'
|
|
|
|
}
|
|
|
|
Entry [ date.default_longitude <ALL> ]
|
|
|
|
Current = '%s'
|
|
|
|
}
|
|
|
|
Entry [ date.sunset_zenith <ALL> ]
|
|
|
|
Current = '%s'
|
|
|
|
}
|
|
|
|
Entry [ date.sunrise_zenith <ALL> ]
|
|
|
|
Current = '%s'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- Constants [14] {
|
|
|
|
Constant [ string DATE_ATOM ] { Y-m-d\TH:i:sP }
|
|
|
|
Constant [ string DATE_COOKIE ] { l, d-M-y H:i:s T }
|
|
|
|
Constant [ string DATE_ISO8601 ] { Y-m-d\TH:i:sO }
|
|
|
|
Constant [ string DATE_RFC822 ] { D, d M y H:i:s O }
|
|
|
|
Constant [ string DATE_RFC850 ] { l, d-M-y H:i:s T }
|
|
|
|
Constant [ string DATE_RFC1036 ] { D, d M y H:i:s O }
|
|
|
|
Constant [ string DATE_RFC1123 ] { D, d M Y H:i:s O }
|
|
|
|
Constant [ string DATE_RFC2822 ] { D, d M Y H:i:s O }
|
|
|
|
Constant [ string DATE_RFC3339 ] { Y-m-d\TH:i:sP }
|
|
|
|
Constant [ string DATE_RSS ] { D, d M Y H:i:s O }
|
|
|
|
Constant [ string DATE_W3C ] { Y-m-d\TH:i:sP }
|
|
|
|
Constant [ integer SUNFUNCS_RET_TIMESTAMP ] { 0 }
|
|
|
|
Constant [ integer SUNFUNCS_RET_STRING ] { 1 }
|
|
|
|
Constant [ integer SUNFUNCS_RET_DOUBLE ] { 2 }
|
|
|
|
}
|
|
|
|
|
|
|
|
- Functions {
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function strtotime ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [2] {
|
|
|
|
Parameter #0 [ <required> $time ]
|
|
|
|
Parameter #1 [ <optional> $now ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [2] {
|
|
|
|
Parameter #0 [ <required> $format ]
|
|
|
|
Parameter #1 [ <optional> $timestamp ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function idate ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [2] {
|
|
|
|
Parameter #0 [ <required> $format ]
|
|
|
|
Parameter #1 [ <optional> $timestamp ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function gmdate ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [2] {
|
|
|
|
Parameter #0 [ <required> $format ]
|
|
|
|
Parameter #1 [ <optional> $timestamp ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function mktime ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [6] {
|
|
|
|
Parameter #0 [ <optional> $hour ]
|
|
|
|
Parameter #1 [ <optional> $min ]
|
|
|
|
Parameter #2 [ <optional> $sec ]
|
|
|
|
Parameter #3 [ <optional> $mon ]
|
|
|
|
Parameter #4 [ <optional> $day ]
|
|
|
|
Parameter #5 [ <optional> $year ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function gmmktime ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [6] {
|
|
|
|
Parameter #0 [ <optional> $hour ]
|
|
|
|
Parameter #1 [ <optional> $min ]
|
|
|
|
Parameter #2 [ <optional> $sec ]
|
|
|
|
Parameter #3 [ <optional> $mon ]
|
|
|
|
Parameter #4 [ <optional> $day ]
|
|
|
|
Parameter #5 [ <optional> $year ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function checkdate ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [3] {
|
|
|
|
Parameter #0 [ <required> $month ]
|
|
|
|
Parameter #1 [ <required> $day ]
|
|
|
|
Parameter #2 [ <required> $year ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function strftime ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [2] {
|
|
|
|
Parameter #0 [ <required> $format ]
|
|
|
|
Parameter #1 [ <optional> $timestamp ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function gmstrftime ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [2] {
|
|
|
|
Parameter #0 [ <required> $format ]
|
|
|
|
Parameter #1 [ <optional> $timestamp ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function time ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [0] {
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function localtime ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [2] {
|
|
|
|
Parameter #0 [ <optional> $timestamp ]
|
|
|
|
Parameter #1 [ <optional> $associative_array ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function getdate ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [1] {
|
|
|
|
Parameter #0 [ <optional> $timestamp ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_create ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_parse ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_format ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_modify ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_timezone_get ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_timezone_set ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_offset_get ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_time_set ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_date_set ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_isodate_set ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-12-15 12:46:22 +00:00
|
|
|
Function [ <internal:date> function date_timestamp_set ] {
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function timezone_open ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function timezone_name_get ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function timezone_name_from_abbr ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function timezone_offset_get ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function timezone_transitions_get ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function timezone_identifiers_list ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function timezone_abbreviations_list ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_default_timezone_set ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [1] {
|
|
|
|
Parameter #0 [ <required> $timezone_identifier ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_default_timezone_get ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [0] {
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_sunrise ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [6] {
|
|
|
|
Parameter #0 [ <required> $time ]
|
|
|
|
Parameter #1 [ <optional> $format ]
|
|
|
|
Parameter #2 [ <optional> $latitude ]
|
|
|
|
Parameter #3 [ <optional> $longitude ]
|
|
|
|
Parameter #4 [ <optional> $zenith ]
|
|
|
|
Parameter #5 [ <optional> $gmt_offset ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_sunset ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [6] {
|
|
|
|
Parameter #0 [ <required> $time ]
|
|
|
|
Parameter #1 [ <optional> $format ]
|
|
|
|
Parameter #2 [ <optional> $latitude ]
|
|
|
|
Parameter #3 [ <optional> $longitude ]
|
|
|
|
Parameter #4 [ <optional> $zenith ]
|
|
|
|
Parameter #5 [ <optional> $gmt_offset ]
|
|
|
|
}
|
|
|
|
}
|
2007-05-30 10:19:39 +00:00
|
|
|
Function [ <internal:date> function date_sun_info ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
- Parameters [3] {
|
|
|
|
Parameter #0 [ <required> $time ]
|
|
|
|
Parameter #1 [ <required> $latitude ]
|
|
|
|
Parameter #2 [ <required> $longitude ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- Classes [2] {
|
|
|
|
Class [ <internal:date> class DateTime ] {
|
|
|
|
|
|
|
|
- Constants [11] {
|
|
|
|
Constant [ string ATOM ] { Y-m-d\TH:i:sP }
|
|
|
|
Constant [ string COOKIE ] { l, d-M-y H:i:s T }
|
|
|
|
Constant [ string ISO8601 ] { Y-m-d\TH:i:sO }
|
|
|
|
Constant [ string RFC822 ] { D, d M y H:i:s O }
|
|
|
|
Constant [ string RFC850 ] { l, d-M-y H:i:s T }
|
|
|
|
Constant [ string RFC1036 ] { D, d M y H:i:s O }
|
|
|
|
Constant [ string RFC1123 ] { D, d M Y H:i:s O }
|
|
|
|
Constant [ string RFC2822 ] { D, d M Y H:i:s O }
|
|
|
|
Constant [ string RFC3339 ] { Y-m-d\TH:i:sP }
|
|
|
|
Constant [ string RSS ] { D, d M Y H:i:s O }
|
|
|
|
Constant [ string W3C ] { Y-m-d\TH:i:sP }
|
|
|
|
}
|
|
|
|
|
|
|
|
- Static properties [0] {
|
|
|
|
}
|
|
|
|
|
|
|
|
- Static methods [0] {
|
|
|
|
}
|
|
|
|
|
|
|
|
- Properties [0] {
|
|
|
|
}
|
|
|
|
|
2007-12-15 12:46:22 +00:00
|
|
|
- Methods [10] {
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date, ctor> public method __construct ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method format ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method modify ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method getTimezone ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method setTimezone ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method getOffset ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method setTime ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method setDate ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method setISODate ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
2007-12-15 12:46:22 +00:00
|
|
|
|
|
|
|
Method [ <internal:date> public method setTimestamp ] {
|
|
|
|
}
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Class [ <internal:date> class DateTimeZone ] {
|
|
|
|
|
|
|
|
- Constants [0] {
|
|
|
|
}
|
|
|
|
|
|
|
|
- Static properties [0] {
|
|
|
|
}
|
|
|
|
|
|
|
|
- Static methods [2] {
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> static public method listAbbreviations ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> static public method listIdentifiers ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- Properties [0] {
|
|
|
|
}
|
|
|
|
|
|
|
|
- Methods [4] {
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date, ctor> public method __construct ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method getName ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method getOffset ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
|
2007-05-30 10:19:39 +00:00
|
|
|
Method [ <internal:date> public method getTransitions ] {
|
2006-11-24 13:33:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
Done
|