From: Antony Dovgal Date: Thu, 28 Feb 2008 09:18:13 +0000 (+0000) Subject: MFH X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~726 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01fa5a782b9eb70c4740d01349b89b80da9a21a8;p=php MFH --- diff --git a/sapi/cli/tests/006.phpt b/sapi/cli/tests/006.phpt index 1951e2037b..c121f74e72 100644 --- a/sapi/cli/tests/006.phpt +++ b/sapi/cli/tests/006.phpt @@ -16,7 +16,7 @@ $php = getenv('TEST_PHP_EXECUTABLE'); var_dump(`$php -n --re unknown`); var_dump(`$php -n --re ""`); -var_dump(`$php -n --re date`); +var_dump(`$php -n --re pcre`); echo "Done\n"; ?> @@ -25,336 +25,77 @@ string(44) "Exception: Extension unknown does not exist " string(37) "Exception: Extension does not exist " -string(%d) "Extension [ extension #%d date version %s ] { - - - Dependencies { - Dependency [ session (Optional) ] - } +string(%d) "Extension [ extension #%d pcre version ] { - INI { - Entry [ date.timezone ] - Current = '' - } - Entry [ date.default_latitude ] - Current = '%s' - } - Entry [ date.default_longitude ] - Current = '%s' + Entry [ pcre.backtrack_limit ] + Current = '%d' } - Entry [ date.sunset_zenith ] - Current = '%s' - } - Entry [ date.sunrise_zenith ] - Current = '%s' + Entry [ pcre.recursion_limit ] + Current = '%d' } } - - 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 } + - Constants [13] { + Constant [ integer PREG_PATTERN_ORDER ] { 1 } + Constant [ integer PREG_SET_ORDER ] { 2 } + Constant [ integer PREG_OFFSET_CAPTURE ] { 256 } + Constant [ integer PREG_SPLIT_NO_EMPTY ] { 1 } + Constant [ integer PREG_SPLIT_DELIM_CAPTURE ] { 2 } + Constant [ integer PREG_SPLIT_OFFSET_CAPTURE ] { 4 } + Constant [ integer PREG_GREP_INVERT ] { 1 } + Constant [ integer PREG_NO_ERROR ] { 0 } + Constant [ integer PREG_INTERNAL_ERROR ] { 1 } + Constant [ integer PREG_BACKTRACK_LIMIT_ERROR ] { 2 } + Constant [ integer PREG_RECURSION_LIMIT_ERROR ] { 3 } + Constant [ integer PREG_BAD_UTF8_ERROR ] { 4 } + Constant [ string PCRE_VERSION ] { %s } } - Functions { - Function [ function strtotime ] { - - - Parameters [2] { - Parameter #0 [ $time ] - Parameter #1 [ $now ] - } - } - Function [ function date ] { - - - Parameters [2] { - Parameter #0 [ $format ] - Parameter #1 [ $timestamp ] - } - } - Function [ function idate ] { - - - Parameters [2] { - Parameter #0 [ $format ] - Parameter #1 [ $timestamp ] - } - } - Function [ function gmdate ] { - - - Parameters [2] { - Parameter #0 [ $format ] - Parameter #1 [ $timestamp ] - } - } - Function [ function mktime ] { - - - Parameters [6] { - Parameter #0 [ $hour ] - Parameter #1 [ $min ] - Parameter #2 [ $sec ] - Parameter #3 [ $mon ] - Parameter #4 [ $day ] - Parameter #5 [ $year ] - } - } - Function [ function gmmktime ] { - - - Parameters [6] { - Parameter #0 [ $hour ] - Parameter #1 [ $min ] - Parameter #2 [ $sec ] - Parameter #3 [ $mon ] - Parameter #4 [ $day ] - Parameter #5 [ $year ] - } - } - Function [ function checkdate ] { + Function [ function preg_match ] { - Parameters [3] { - Parameter #0 [ $month ] - Parameter #1 [ $day ] - Parameter #2 [ $year ] - } - } - Function [ function strftime ] { - - - Parameters [2] { - Parameter #0 [ $format ] - Parameter #1 [ $timestamp ] + Parameter #0 [ $param0 ] + Parameter #1 [ $param1 ] + Parameter #2 [ &$param2 ] } } - Function [ function gmstrftime ] { - - - Parameters [2] { - Parameter #0 [ $format ] - Parameter #1 [ $timestamp ] - } - } - Function [ function time ] { - - - Parameters [0] { - } - } - Function [ function localtime ] { - - - Parameters [2] { - Parameter #0 [ $timestamp ] - Parameter #1 [ $associative_array ] - } - } - Function [ function getdate ] { - - - Parameters [1] { - Parameter #0 [ $timestamp ] - } - } - Function [ function date_create ] { - } - Function [ function date_create_from_format ] { - } - Function [ function date_parse ] { - } - Function [ function date_parse_from_format ] { - } - Function [ function date_get_last_errors ] { - } - Function [ function date_format ] { - } - Function [ function date_modify ] { - } - Function [ function date_timezone_get ] { - } - Function [ function date_timezone_set ] { - } - Function [ function date_offset_get ] { - } - Function [ function date_time_set ] { - } - Function [ function date_date_set ] { - } - Function [ function date_isodate_set ] { - } - Function [ function date_timestamp_set ] { - } - Function [ function date_timestamp_get ] { - } - Function [ function timezone_open ] { - } - Function [ function timezone_name_get ] { - } - Function [ function timezone_name_from_abbr ] { - } - Function [ function timezone_offset_get ] { - } - Function [ function timezone_transitions_get ] { - } - Function [ function timezone_identifiers_list ] { - } - Function [ function timezone_abbreviations_list ] { - } - Function [ function date_default_timezone_set ] { + Function [ function preg_match_all ] { - - Parameters [1] { - Parameter #0 [ $timezone_identifier ] + - Parameters [3] { + Parameter #0 [ $param0 ] + Parameter #1 [ $param1 ] + Parameter #2 [ &$param2 ] } } - Function [ function date_default_timezone_get ] { + Function [ function preg_replace ] { - - Parameters [0] { + - Parameters [5] { + Parameter #0 [ $param0 ] + Parameter #1 [ $param1 ] + Parameter #2 [ $param2 ] + Parameter #3 [ $param3 ] + Parameter #4 [ &$param4 ] } } - Function [ function date_sunrise ] { + Function [ function preg_replace_callback ] { - - Parameters [6] { - Parameter #0 [ $time ] - Parameter #1 [ $format ] - Parameter #2 [ $latitude ] - Parameter #3 [ $longitude ] - Parameter #4 [ $zenith ] - Parameter #5 [ $gmt_offset ] + - Parameters [5] { + Parameter #0 [ $param0 ] + Parameter #1 [ $param1 ] + Parameter #2 [ $param2 ] + Parameter #3 [ $param3 ] + Parameter #4 [ &$param4 ] } } - Function [ function date_sunset ] { - - - Parameters [6] { - Parameter #0 [ $time ] - Parameter #1 [ $format ] - Parameter #2 [ $latitude ] - Parameter #3 [ $longitude ] - Parameter #4 [ $zenith ] - Parameter #5 [ $gmt_offset ] - } + Function [ function preg_split ] { } - Function [ function date_sun_info ] { - - - Parameters [3] { - Parameter #0 [ $time ] - Parameter #1 [ $latitude ] - Parameter #2 [ $longitude ] - } + Function [ function preg_quote ] { } - } - - - Classes [2] { - Class [ 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 [2] { - Method [ static public method createFromFormat ] { - } - - Method [ static public method getLastErrors ] { - } - } - - - Properties [0] { - } - - - Methods [11] { - Method [ public method __construct ] { - } - - Method [ public method format ] { - } - - Method [ public method modify ] { - } - - Method [ public method getTimezone ] { - } - - Method [ public method setTimezone ] { - } - - Method [ public method getOffset ] { - } - - Method [ public method setTime ] { - } - - Method [ public method setDate ] { - } - - Method [ public method setISODate ] { - } - - Method [ public method setTimestamp ] { - } - - Method [ public method getTimestamp ] { - } - } + Function [ function preg_grep ] { } - - Class [ class DateTimeZone ] { - - - Constants [12] { - Constant [ integer AMERICA ] { 1 } - Constant [ integer ANTARCTICA ] { 2 } - Constant [ integer ARCTIC ] { 4 } - Constant [ integer ASIA ] { 8 } - Constant [ integer ATLANTIC ] { 16 } - Constant [ integer AUSTRALIA ] { 32 } - Constant [ integer EUROPE ] { 64 } - Constant [ integer INDIAN ] { 128 } - Constant [ integer PACIFIC ] { 256 } - Constant [ integer UTC ] { 512 } - Constant [ integer ALL ] { 1023 } - Constant [ integer ALL_WITH_BC ] { 2047 } - } - - - Static properties [0] { - } - - - Static methods [2] { - Method [ static public method listAbbreviations ] { - } - - Method [ static public method listIdentifiers ] { - } - } - - - Properties [0] { - } - - - Methods [4] { - Method [ public method __construct ] { - } - - Method [ public method getName ] { - } - - Method [ public method getOffset ] { - } - - Method [ public method getTransitions ] { - } - } + Function [ function preg_last_error ] { } } }