summaryrefslogtreecommitdiff
path: root/sapi/cli/tests/006.phpt
blob: 0ea14692d9efd9250172f52201ea6e67b87c25df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
--TEST--
show information about extension
--SKIPIF--
<?php include "skipif.inc"; ?>
--FILE--
<?php

$php = getenv('TEST_PHP_EXECUTABLE');

var_dump(`"$php" -n --re unknown`);
var_dump(`"$php" -n --re ""`);
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
"
string(%d) "Extension [ <persistent> extension #%d date version %s ] {

  - Dependencies {
    Dependency [ session (Optional) ]
  }

  - INI {
    Entry [ date.timezone <ALL> ]
      Current = ''
    }
    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 {
    Function [ <internal:date> function strtotime ] {

      - Parameters [2] {
        Parameter #0 [ <required> $time ]
        Parameter #1 [ <optional> $now ]
      }
    }
    Function [ <internal:date> function date ] {

      - Parameters [2] {
        Parameter #0 [ <required> $format ]
        Parameter #1 [ <optional> $timestamp ]
      }
    }
    Function [ <internal:date> function idate ] {

      - Parameters [2] {
        Parameter #0 [ <required> $format ]
        Parameter #1 [ <optional> $timestamp ]
      }
    }
    Function [ <internal:date> function gmdate ] {

      - Parameters [2] {
        Parameter #0 [ <required> $format ]
        Parameter #1 [ <optional> $timestamp ]
      }
    }
    Function [ <internal:date> function mktime ] {

      - 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 ]
      }
    }
    Function [ <internal:date> function gmmktime ] {

      - 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 ]
      }
    }
    Function [ <internal:date> function checkdate ] {

      - Parameters [3] {
        Parameter #0 [ <required> $month ]
        Parameter #1 [ <required> $day ]
        Parameter #2 [ <required> $year ]
      }
    }
    Function [ <internal:date> function strftime ] {

      - Parameters [2] {
        Parameter #0 [ <required> $format ]
        Parameter #1 [ <optional> $timestamp ]
      }
    }
    Function [ <internal:date> function gmstrftime ] {

      - Parameters [2] {
        Parameter #0 [ <required> $format ]
        Parameter #1 [ <optional> $timestamp ]
      }
    }
    Function [ <internal:date> function time ] {

      - Parameters [0] {
      }
    }
    Function [ <internal:date> function localtime ] {

      - Parameters [2] {
        Parameter #0 [ <optional> $timestamp ]
        Parameter #1 [ <optional> $associative_array ]
      }
    }
    Function [ <internal:date> function getdate ] {

      - Parameters [1] {
        Parameter #0 [ <optional> $timestamp ]
      }
    }
    Function [ <internal:date> function date_create ] {
    }
    Function [ <internal:date> function date_parse ] {
    }
    Function [ <internal:date> function date_format ] {
    }
    Function [ <internal:date> function date_format_locale ] {
    }
    Function [ <internal:date> function date_modify ] {
    }
    Function [ <internal:date> function date_timezone_get ] {
    }
    Function [ <internal:date> function date_timezone_set ] {
    }
    Function [ <internal:date> function date_offset_get ] {
    }
    Function [ <internal:date> function date_time_set ] {
    }
    Function [ <internal:date> function date_date_set ] {
    }
    Function [ <internal:date> function date_isodate_set ] {
    }
    Function [ <internal:date> function timezone_open ] {
    }
    Function [ <internal:date> function timezone_name_get ] {
    }
    Function [ <internal:date> function timezone_name_from_abbr ] {
    }
    Function [ <internal:date> function timezone_offset_get ] {
    }
    Function [ <internal:date> function timezone_transitions_get ] {
    }
    Function [ <internal:date> function timezone_identifiers_list ] {
    }
    Function [ <internal:date> function timezone_abbreviations_list ] {
    }
    Function [ <internal:date> function date_default_timezone_set ] {

      - Parameters [1] {
        Parameter #0 [ <required> $timezone_identifier ]
      }
    }
    Function [ <internal:date> function date_default_timezone_get ] {

      - Parameters [0] {
      }
    }
    Function [ <internal:date> function date_sunrise ] {

      - 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 ]
      }
    }
    Function [ <internal:date> function date_sunset ] {

      - 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 ]
      }
    }
    Function [ <internal:date> function date_sun_info ] {

      - 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] {
      }

      - Methods [9] {
        Method [ <internal:date, ctor> public method __construct ] {
        }

        Method [ <internal:date> public method format ] {
        }

        Method [ <internal:date> public method modify ] {
        }

        Method [ <internal:date> public method getTimezone ] {
        }

        Method [ <internal:date> public method setTimezone ] {
        }

        Method [ <internal:date> public method getOffset ] {
        }

        Method [ <internal:date> public method setTime ] {
        }

        Method [ <internal:date> public method setDate ] {
        }

        Method [ <internal:date> public method setISODate ] {
        }
      }
    }

    Class [ <internal:date> class DateTimeZone ] {

      - Constants [0] {
      }

      - Static properties [0] {
      }

      - Static methods [2] {
        Method [ <internal:date> static public method listAbbreviations ] {
        }

        Method [ <internal:date> static public method listIdentifiers ] {
        }
      }

      - Properties [0] {
      }

      - Methods [4] {
        Method [ <internal:date, ctor> public method __construct ] {
        }

        Method [ <internal:date> public method getName ] {
        }

        Method [ <internal:date> public method getOffset ] {
        }

        Method [ <internal:date> public method getTransitions ] {
        }
      }
    }
  }
}

"
Done