~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to pear/tests/pear_common_infoFromString.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
PEAR_Common::infoFromString test
 
3
--SKIPIF--
 
4
<?php
 
5
if (!getenv('PHP_PEAR_RUNTESTS')) {
 
6
    echo 'skip';
 
7
}
 
8
if (!function_exists('token_get_all')) {
 
9
    echo 'skip';
 
10
}
 
11
?>
 
12
--FILE--
 
13
<?php
 
14
putenv('PHP_PEAR_SYSCONF_DIR=' . dirname(__FILE__));
 
15
 
 
16
require_once "PEAR/Common.php";
 
17
 
 
18
$common = &new PEAR_Common;
 
19
 
 
20
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'catchit');
 
21
 
 
22
function catchit($err)
 
23
{
 
24
    echo "Caught error: " . $err->getMessage() . "\n";
 
25
}
 
26
 
 
27
echo "Test invalid XML\n";
 
28
 
 
29
$common->infoFromString('\\goober');
 
30
 
 
31
echo "Test valid XML, not a package.xml\n";
 
32
 
 
33
$common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
34
    "\n<grobbage></grobbage>");
 
35
 
 
36
echo "Test valid package.xml, invalid version number\n";
 
37
 
 
38
$common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
39
    '<package version="10000000"></package>');
 
40
 
 
41
echo "Test empty package.xml\n";
 
42
 
 
43
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
44
    '<package version="1.0"></package>');
 
45
 
 
46
var_dump($ret);
 
47
 
 
48
echo "Test 1\n";
 
49
 
 
50
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
51
    '<package version="1.0"><name>test</name></package>');
 
52
 
 
53
var_dump($ret);
 
54
 
 
55
echo "Test 2\n";
 
56
 
 
57
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
58
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
59
    '</package>');
 
60
 
 
61
var_dump($ret);
 
62
 
 
63
echo "Test 3\n";
 
64
 
 
65
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
66
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
67
    '<description>The test</description></package>');
 
68
 
 
69
var_dump($ret);
 
70
 
 
71
echo "Test 4\n";
 
72
 
 
73
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
74
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
75
    '<description>The test</description><license>PHP License</license></package>');
 
76
 
 
77
var_dump($ret);
 
78
 
 
79
echo "Test 5\n";
 
80
 
 
81
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
82
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
83
    '<description>The test</description><license>PHP License</license>  <maintainers>
 
84
    <maintainer>
 
85
      <user>test</user>
 
86
      <role>lead</role>
 
87
      <name>test tester</name>
 
88
      <email>test@php.net</email>
 
89
    </maintainer></maintainers>
 
90
</package>');
 
91
 
 
92
var_dump($ret);
 
93
 
 
94
echo "Test 6\n";
 
95
 
 
96
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
97
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
98
    '<description>The test</description><license>PHP License</license>  <maintainers>
 
99
    <maintainer>
 
100
      <user>test</user>
 
101
      <role>lead</role>
 
102
      <name>test tester</name>
 
103
      <email>test@php.net</email>
 
104
    </maintainer></maintainers><release>
 
105
    <version>1.3b4</version></release>
 
106
</package>');
 
107
 
 
108
var_dump($ret);
 
109
 
 
110
echo "Test 7\n";
 
111
 
 
112
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
113
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
114
    '<description>The test</description><license>PHP License</license>  <maintainers>
 
115
    <maintainer>
 
116
      <user>test</user>
 
117
      <role>lead</role>
 
118
      <name>test tester</name>
 
119
      <email>test@php.net</email>
 
120
    </maintainer></maintainers><release>
 
121
    <version>1.3b4</version>
 
122
    <date>2003-11-17</date>
 
123
    <state>beta</state>
 
124
    <notes>test</notes></release>
 
125
</package>');
 
126
 
 
127
var_dump($ret);
 
128
 
 
129
echo "Test 8\n";
 
130
 
 
131
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
132
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
133
    '<description>The test</description><license>PHP License</license>  <maintainers>
 
134
    <maintainer>
 
135
      <user>test</user>
 
136
      <role>lead</role>
 
137
      <name>test tester</name>
 
138
      <email>test@php.net</email>
 
139
    </maintainer></maintainers><release>
 
140
    <version>1.3b4</version>
 
141
    <date>2003-11-17</date>
 
142
    <state>beta</state>
 
143
    <notes>test</notes>
 
144
    <provides type="class" name="furngy" /></release>
 
145
</package>');
 
146
 
 
147
var_dump($ret);
 
148
 
 
149
echo "Test 9\n";
 
150
 
 
151
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
152
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
153
    '<description>The test</description><license>PHP License</license>  <maintainers>
 
154
    <maintainer>
 
155
      <user>test</user>
 
156
      <role>lead</role>
 
157
      <name>test tester</name>
 
158
      <email>test@php.net</email>
 
159
    </maintainer></maintainers><release>
 
160
    <version>1.3b4</version>
 
161
    <date>2003-11-17</date>
 
162
    <state>beta</state>
 
163
    <notes>test</notes>
 
164
    <provides type="class" name="furngy" />
 
165
    <deps>
 
166
          <dep type="ext" rel="has" optional="yes">xmlrpc</dep>
 
167
    </deps>
 
168
</release>
 
169
</package>');
 
170
 
 
171
var_dump($ret);
 
172
 
 
173
echo "Test 10\n";
 
174
 
 
175
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
176
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
177
    '<description>The test</description><license>PHP License</license>  <maintainers>
 
178
    <maintainer>
 
179
      <user>test</user>
 
180
      <role>lead</role>
 
181
      <name>test tester</name>
 
182
      <email>test@php.net</email>
 
183
    </maintainer></maintainers><release>
 
184
    <version>1.3b4</version>
 
185
    <date>2003-11-17</date>
 
186
    <state>beta</state>
 
187
    <notes>test</notes>
 
188
    <provides type="class" name="furngy" />
 
189
    <deps>
 
190
          <dep type="ext" rel="has" optional="yes">xmlrpc</dep>
 
191
    </deps>
 
192
        <filelist>
 
193
      <file role="data" name="package.dtd"/>
 
194
      <file role="data" name="template.spec"/>
 
195
      <file role="php" name="PEAR.php"/>
 
196
      <file role="php" name="System.php"/>
 
197
      <dir name="PEAR">
 
198
        <file role="php" name="Autoloader.php"/>
 
199
        <file role="php" name="Command.php"/>
 
200
        <dir name="Command">
 
201
          <file role="php" name="Auth.php"/>
 
202
          <file role="php" name="Build.php"/>
 
203
          <file role="php" name="Common.php"/>
 
204
          <file role="php" name="Config.php"/>
 
205
          <file role="php" name="Install.php"/>
 
206
          <file role="php" name="Package.php"/>
 
207
          <file role="php" name="Registry.php"/>
 
208
          <file role="php" name="Remote.php"/>
 
209
          <file role="php" name="Mirror.php"/>
 
210
        </dir>
 
211
        <file role="php" name="Common.php"/>
 
212
        <file role="php" name="Config.php"/>
 
213
        <file role="php" name="Dependency.php"/>
 
214
        <dir name="Frontend">
 
215
          <file role="php" name="CLI.php"/>
 
216
        </dir>
 
217
        <file role="php" name="Builder.php"/>
 
218
        <file role="php" name="Installer.php"/>
 
219
        <file role="php" name="Packager.php"/>
 
220
        <file role="php" name="Registry.php"/>
 
221
        <file role="php" name="Remote.php"/>
 
222
      </dir>
 
223
      <dir name="OS">
 
224
        <file role="php" name="Guess.php"/>
 
225
      </dir>
 
226
      <dir name="scripts" baseinstalldir="/">
 
227
        <file role="script" install-as="pear" name="pear.sh">
 
228
          <replace from="@php_bin@" to="php_bin" type="pear-config"/>
 
229
          <replace from="@php_dir@" to="php_dir" type="pear-config"/>
 
230
          <replace from="@pear_version@" to="version" type="package-info"/>
 
231
          <replace from="@include_path@" to="php_dir" type="pear-config"/>
 
232
        </file>
 
233
        <file role="script" platform="windows" install-as="pear.bat" name="pear.bat">
 
234
        <replace from="@bin_dir@" to="bin_dir" type="pear-config"/>
 
235
        <replace from="@php_bin@" to="php_bin" type="pear-config"/>
 
236
        <replace from="@include_path@" to="php_dir" type="pear-config"/>
 
237
        </file>
 
238
        <file role="php" install-as="pearcmd.php" name="pearcmd.php">
 
239
          <replace from="@php_bin@" to="php_bin" type="pear-config"/>
 
240
          <replace from="@php_dir@" to="php_dir" type="pear-config"/>
 
241
          <replace from="@pear_version@" to="version" type="package-info"/>
 
242
          <replace from="@include_path@" to="php_dir" type="pear-config"/>
 
243
        </file>
 
244
      </dir>
 
245
    </filelist>
 
246
 
 
247
</release>
 
248
</package>');
 
249
 
 
250
var_dump($ret);
 
251
 
 
252
echo "Test 11\n";
 
253
 
 
254
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
255
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
256
    '<description>The test</description><license>PHP License</license>  <maintainers>
 
257
    <maintainer>
 
258
      <user>test</user>
 
259
      <role>lead</role>
 
260
      <name>test tester</name>
 
261
      <email>test@php.net</email>
 
262
    </maintainer></maintainers><release>
 
263
    <version>1.3b4</version>
 
264
    <date>2003-11-17</date>
 
265
    <state>beta</state>
 
266
    <notes>test</notes>
 
267
    <provides type="class" name="furngy" />
 
268
    <deps>
 
269
          <dep type="ext" rel="has" optional="yes">xmlrpc</dep>
 
270
    </deps>
 
271
        <filelist>
 
272
      <file role="data" name="package.dtd"/>
 
273
      <file role="data" name="template.spec"/>
 
274
      <file role="php" name="PEAR.php"/>
 
275
      <file role="php" name="System.php"/>
 
276
      <dir name="PEAR">
 
277
        <file role="php" name="Autoloader.php"/>
 
278
        <file role="php" name="Command.php"/>
 
279
        <dir name="Command">
 
280
          <file role="php" name="Auth.php"/>
 
281
          <file role="php" name="Build.php"/>
 
282
          <file role="php" name="Common.php"/>
 
283
          <file role="php" name="Config.php"/>
 
284
          <file role="php" name="Install.php"/>
 
285
          <file role="php" name="Package.php"/>
 
286
          <file role="php" name="Registry.php"/>
 
287
          <file role="php" name="Remote.php"/>
 
288
          <file role="php" name="Mirror.php"/>
 
289
        </dir>
 
290
        <file role="php" name="Common.php"/>
 
291
        <file role="php" name="Config.php"/>
 
292
        <file role="php" name="Dependency.php"/>
 
293
        <dir name="Frontend">
 
294
          <file role="php" name="CLI.php"/>
 
295
        </dir>
 
296
        <file role="php" name="Builder.php"/>
 
297
        <file role="php" name="Installer.php"/>
 
298
        <file role="php" name="Packager.php"/>
 
299
        <file role="php" name="Registry.php"/>
 
300
        <file role="php" name="Remote.php"/>
 
301
      </dir>
 
302
      <dir name="OS">
 
303
        <file role="php" name="Guess.php"/>
 
304
      </dir>
 
305
      <dir name="scripts" baseinstalldir="/">
 
306
        <file role="script" install-as="pear" name="pear.sh">
 
307
          <replace from="@php_bin@" to="php_bin" type="pear-config"/>
 
308
          <replace from="@php_dir@" to="php_dir" type="pear-config"/>
 
309
          <replace from="@pear_version@" to="version" type="package-info"/>
 
310
          <replace from="@include_path@" to="php_dir" type="pear-config"/>
 
311
        </file>
 
312
        <file role="script" platform="windows" install-as="pear.bat" name="pear.bat">
 
313
        <replace from="@bin_dir@" to="bin_dir" type="pear-config"/>
 
314
        <replace from="@php_bin@" to="php_bin" type="pear-config"/>
 
315
        <replace from="@include_path@" to="php_dir" type="pear-config"/>
 
316
        </file>
 
317
        <file role="php" install-as="pearcmd.php" name="pearcmd.php">
 
318
          <replace from="@php_bin@" to="php_bin" type="pear-config"/>
 
319
          <replace from="@php_dir@" to="php_dir" type="pear-config"/>
 
320
          <replace from="@pear_version@" to="version" type="package-info"/>
 
321
          <replace from="@include_path@" to="php_dir" type="pear-config"/>
 
322
        </file>
 
323
      </dir>
 
324
    </filelist>
 
325
    <configureoptions>
 
326
     <configureoption name="test" prompt="The prompt test" default="foo" />
 
327
    </configureoptions>
 
328
</release>
 
329
</package>');
 
330
 
 
331
var_dump($ret);
 
332
 
 
333
echo "Test 12\n";
 
334
 
 
335
$ret = $common->infoFromString('<?xml version="1.0" encoding="ISO-8859-1" ?>' .
 
336
    '<package version="1.0"><name>test</name><summary>PEAR test</summary>' . 
 
337
    '<description>The test</description><license>PHP License</license>  <maintainers>
 
338
    <maintainer>
 
339
      <user>test</user>
 
340
      <role>lead</role>
 
341
      <name>test tester</name>
 
342
      <email>test@php.net</email>
 
343
    </maintainer></maintainers><release>
 
344
    <version>1.3b4</version>
 
345
    <date>2003-11-17</date>
 
346
    <state>beta</state>
 
347
    <notes>test</notes>
 
348
    <provides type="class" name="furngy" />
 
349
    <deps>
 
350
          <dep type="ext" rel="has" optional="yes">xmlrpc</dep>
 
351
    </deps>
 
352
        <filelist>
 
353
      <file role="data" name="package.dtd"/>
 
354
      <file role="data" name="template.spec"/>
 
355
      <file role="php" name="PEAR.php"/>
 
356
      <file role="php" name="System.php"/>
 
357
      <dir name="PEAR">
 
358
        <file role="php" name="Autoloader.php"/>
 
359
        <file role="php" name="Command.php"/>
 
360
        <dir name="Command">
 
361
          <file role="php" name="Auth.php"/>
 
362
          <file role="php" name="Build.php"/>
 
363
          <file role="php" name="Common.php"/>
 
364
          <file role="php" name="Config.php"/>
 
365
          <file role="php" name="Install.php"/>
 
366
          <file role="php" name="Package.php"/>
 
367
          <file role="php" name="Registry.php"/>
 
368
          <file role="php" name="Remote.php"/>
 
369
          <file role="php" name="Mirror.php"/>
 
370
        </dir>
 
371
        <file role="php" name="Common.php"/>
 
372
        <file role="php" name="Config.php"/>
 
373
        <file role="php" name="Dependency.php"/>
 
374
        <dir name="Frontend">
 
375
          <file role="php" name="CLI.php"/>
 
376
        </dir>
 
377
        <file role="php" name="Builder.php"/>
 
378
        <file role="php" name="Installer.php"/>
 
379
        <file role="php" name="Packager.php"/>
 
380
        <file role="php" name="Registry.php"/>
 
381
        <file role="php" name="Remote.php"/>
 
382
      </dir>
 
383
      <dir name="OS">
 
384
        <file role="php" name="Guess.php"/>
 
385
      </dir>
 
386
      <dir name="scripts" baseinstalldir="/">
 
387
        <file role="script" install-as="pear" name="pear.sh">
 
388
          <replace from="@php_bin@" to="php_bin" type="pear-config"/>
 
389
          <replace from="@php_dir@" to="php_dir" type="pear-config"/>
 
390
          <replace from="@pear_version@" to="version" type="package-info"/>
 
391
          <replace from="@include_path@" to="php_dir" type="pear-config"/>
 
392
        </file>
 
393
        <file role="script" platform="windows" install-as="pear.bat" name="pear.bat">
 
394
        <replace from="@bin_dir@" to="bin_dir" type="pear-config"/>
 
395
        <replace from="@php_bin@" to="php_bin" type="pear-config"/>
 
396
        <replace from="@include_path@" to="php_dir" type="pear-config"/>
 
397
        </file>
 
398
        <file role="php" install-as="pearcmd.php" name="pearcmd.php">
 
399
          <replace from="@php_bin@" to="php_bin" type="pear-config"/>
 
400
          <replace from="@php_dir@" to="php_dir" type="pear-config"/>
 
401
          <replace from="@pear_version@" to="version" type="package-info"/>
 
402
          <replace from="@include_path@" to="php_dir" type="pear-config"/>
 
403
        </file>
 
404
      </dir>
 
405
    </filelist>
 
406
    <configureoptions>
 
407
     <configureoption name="test" prompt="The prompt test" default="foo" />
 
408
    </configureoptions>
 
409
</release>
 
410
  <changelog>
 
411
    <release>
 
412
      <version>0.1</version>
 
413
      <date>2003-07-21</date>
 
414
      <license>PHP License</license>
 
415
      <state>alpha</state>
 
416
      <notes>First release of test</notes>
 
417
    </release>
 
418
    <release>
 
419
      <version>0.2</version>
 
420
      <date>2003-07-21</date>
 
421
      <license>PHP License</license>
 
422
      <state>alpha</state>
 
423
      <notes>Generation of package.xml from scratch is now supported.  In addition,
 
424
generation of &lt;provides&gt; is supported and so is addition of
 
425
maintainers and configure options
 
426
 
 
427
- Fixed a bug in &lt;release&gt; generation
 
428
- Added _addProvides() to generate a &lt;provides&gt; section</notes>
 
429
    </release>
 
430
   </changelog>
 
431
</package>');
 
432
 
 
433
var_dump($ret);
 
434
 
 
435
?>
 
436
--EXPECT--
 
437
Test invalid XML
 
438
Caught error: XML error: not well-formed (invalid token) at line 1
 
439
Test valid XML, not a package.xml
 
440
Caught error: Invalid Package File, no <package> tag
 
441
Test valid package.xml, invalid version number
 
442
Caught error: No handlers for package.xml version 10000000
 
443
Test empty package.xml
 
444
array(2) {
 
445
  ["provides"]=>
 
446
  array(0) {
 
447
  }
 
448
  ["filelist"]=>
 
449
  &array(0) {
 
450
  }
 
451
}
 
452
Test 1
 
453
array(3) {
 
454
  ["provides"]=>
 
455
  array(0) {
 
456
  }
 
457
  ["filelist"]=>
 
458
  &array(0) {
 
459
  }
 
460
  ["package"]=>
 
461
  string(4) "test"
 
462
}
 
463
Test 2
 
464
array(4) {
 
465
  ["provides"]=>
 
466
  array(0) {
 
467
  }
 
468
  ["filelist"]=>
 
469
  &array(0) {
 
470
  }
 
471
  ["package"]=>
 
472
  string(4) "test"
 
473
  ["summary"]=>
 
474
  string(9) "PEAR test"
 
475
}
 
476
Test 3
 
477
array(5) {
 
478
  ["provides"]=>
 
479
  array(0) {
 
480
  }
 
481
  ["filelist"]=>
 
482
  &array(0) {
 
483
  }
 
484
  ["package"]=>
 
485
  string(4) "test"
 
486
  ["summary"]=>
 
487
  string(9) "PEAR test"
 
488
  ["description"]=>
 
489
  string(8) "The test"
 
490
}
 
491
Test 4
 
492
array(6) {
 
493
  ["provides"]=>
 
494
  array(0) {
 
495
  }
 
496
  ["filelist"]=>
 
497
  &array(0) {
 
498
  }
 
499
  ["package"]=>
 
500
  string(4) "test"
 
501
  ["summary"]=>
 
502
  string(9) "PEAR test"
 
503
  ["description"]=>
 
504
  string(8) "The test"
 
505
  ["release_license"]=>
 
506
  string(11) "PHP License"
 
507
}
 
508
Test 5
 
509
array(7) {
 
510
  ["provides"]=>
 
511
  array(0) {
 
512
  }
 
513
  ["filelist"]=>
 
514
  &array(0) {
 
515
  }
 
516
  ["package"]=>
 
517
  string(4) "test"
 
518
  ["summary"]=>
 
519
  string(9) "PEAR test"
 
520
  ["description"]=>
 
521
  string(8) "The test"
 
522
  ["release_license"]=>
 
523
  string(11) "PHP License"
 
524
  ["maintainers"]=>
 
525
  array(1) {
 
526
    [0]=>
 
527
    &array(4) {
 
528
      ["handle"]=>
 
529
      string(4) "test"
 
530
      ["role"]=>
 
531
      string(4) "lead"
 
532
      ["name"]=>
 
533
      string(11) "test tester"
 
534
      ["email"]=>
 
535
      string(12) "test@php.net"
 
536
    }
 
537
  }
 
538
}
 
539
Test 6
 
540
array(8) {
 
541
  ["provides"]=>
 
542
  array(0) {
 
543
  }
 
544
  ["filelist"]=>
 
545
  &array(0) {
 
546
  }
 
547
  ["package"]=>
 
548
  string(4) "test"
 
549
  ["summary"]=>
 
550
  string(9) "PEAR test"
 
551
  ["description"]=>
 
552
  string(8) "The test"
 
553
  ["release_license"]=>
 
554
  string(11) "PHP License"
 
555
  ["maintainers"]=>
 
556
  array(1) {
 
557
    [0]=>
 
558
    &array(4) {
 
559
      ["handle"]=>
 
560
      string(4) "test"
 
561
      ["role"]=>
 
562
      string(4) "lead"
 
563
      ["name"]=>
 
564
      string(11) "test tester"
 
565
      ["email"]=>
 
566
      string(12) "test@php.net"
 
567
    }
 
568
  }
 
569
  ["version"]=>
 
570
  string(5) "1.3b4"
 
571
}
 
572
Test 7
 
573
array(11) {
 
574
  ["provides"]=>
 
575
  array(0) {
 
576
  }
 
577
  ["filelist"]=>
 
578
  &array(0) {
 
579
  }
 
580
  ["package"]=>
 
581
  string(4) "test"
 
582
  ["summary"]=>
 
583
  string(9) "PEAR test"
 
584
  ["description"]=>
 
585
  string(8) "The test"
 
586
  ["release_license"]=>
 
587
  string(11) "PHP License"
 
588
  ["maintainers"]=>
 
589
  array(1) {
 
590
    [0]=>
 
591
    &array(4) {
 
592
      ["handle"]=>
 
593
      string(4) "test"
 
594
      ["role"]=>
 
595
      string(4) "lead"
 
596
      ["name"]=>
 
597
      string(11) "test tester"
 
598
      ["email"]=>
 
599
      string(12) "test@php.net"
 
600
    }
 
601
  }
 
602
  ["version"]=>
 
603
  string(5) "1.3b4"
 
604
  ["release_date"]=>
 
605
  string(10) "2003-11-17"
 
606
  ["release_state"]=>
 
607
  string(4) "beta"
 
608
  ["release_notes"]=>
 
609
  string(4) "test"
 
610
}
 
611
Test 8
 
612
array(11) {
 
613
  ["provides"]=>
 
614
  array(1) {
 
615
    ["class;furngy"]=>
 
616
    array(3) {
 
617
      ["type"]=>
 
618
      string(5) "class"
 
619
      ["name"]=>
 
620
      string(6) "furngy"
 
621
      ["explicit"]=>
 
622
      bool(true)
 
623
    }
 
624
  }
 
625
  ["filelist"]=>
 
626
  &array(0) {
 
627
  }
 
628
  ["package"]=>
 
629
  string(4) "test"
 
630
  ["summary"]=>
 
631
  string(9) "PEAR test"
 
632
  ["description"]=>
 
633
  string(8) "The test"
 
634
  ["release_license"]=>
 
635
  string(11) "PHP License"
 
636
  ["maintainers"]=>
 
637
  array(1) {
 
638
    [0]=>
 
639
    &array(4) {
 
640
      ["handle"]=>
 
641
      string(4) "test"
 
642
      ["role"]=>
 
643
      string(4) "lead"
 
644
      ["name"]=>
 
645
      string(11) "test tester"
 
646
      ["email"]=>
 
647
      string(12) "test@php.net"
 
648
    }
 
649
  }
 
650
  ["version"]=>
 
651
  string(5) "1.3b4"
 
652
  ["release_date"]=>
 
653
  string(10) "2003-11-17"
 
654
  ["release_state"]=>
 
655
  string(4) "beta"
 
656
  ["release_notes"]=>
 
657
  string(4) "test"
 
658
}
 
659
Test 9
 
660
array(12) {
 
661
  ["provides"]=>
 
662
  array(1) {
 
663
    ["class;furngy"]=>
 
664
    array(3) {
 
665
      ["type"]=>
 
666
      string(5) "class"
 
667
      ["name"]=>
 
668
      string(6) "furngy"
 
669
      ["explicit"]=>
 
670
      bool(true)
 
671
    }
 
672
  }
 
673
  ["filelist"]=>
 
674
  &array(0) {
 
675
  }
 
676
  ["package"]=>
 
677
  string(4) "test"
 
678
  ["summary"]=>
 
679
  string(9) "PEAR test"
 
680
  ["description"]=>
 
681
  string(8) "The test"
 
682
  ["release_license"]=>
 
683
  string(11) "PHP License"
 
684
  ["maintainers"]=>
 
685
  array(1) {
 
686
    [0]=>
 
687
    &array(4) {
 
688
      ["handle"]=>
 
689
      string(4) "test"
 
690
      ["role"]=>
 
691
      string(4) "lead"
 
692
      ["name"]=>
 
693
      string(11) "test tester"
 
694
      ["email"]=>
 
695
      string(12) "test@php.net"
 
696
    }
 
697
  }
 
698
  ["version"]=>
 
699
  string(5) "1.3b4"
 
700
  ["release_date"]=>
 
701
  string(10) "2003-11-17"
 
702
  ["release_state"]=>
 
703
  string(4) "beta"
 
704
  ["release_notes"]=>
 
705
  string(4) "test"
 
706
  ["release_deps"]=>
 
707
  array(1) {
 
708
    [1]=>
 
709
    array(4) {
 
710
      ["type"]=>
 
711
      string(3) "ext"
 
712
      ["rel"]=>
 
713
      string(3) "has"
 
714
      ["optional"]=>
 
715
      string(3) "yes"
 
716
      ["name"]=>
 
717
      string(6) "xmlrpc"
 
718
    }
 
719
  }
 
720
}
 
721
Test 10
 
722
array(12) {
 
723
  ["provides"]=>
 
724
  array(1) {
 
725
    ["class;furngy"]=>
 
726
    array(3) {
 
727
      ["type"]=>
 
728
      string(5) "class"
 
729
      ["name"]=>
 
730
      string(6) "furngy"
 
731
      ["explicit"]=>
 
732
      bool(true)
 
733
    }
 
734
  }
 
735
  ["filelist"]=>
 
736
  &array(28) {
 
737
    ["package.dtd"]=>
 
738
    array(1) {
 
739
      ["role"]=>
 
740
      string(4) "data"
 
741
    }
 
742
    ["template.spec"]=>
 
743
    array(1) {
 
744
      ["role"]=>
 
745
      string(4) "data"
 
746
    }
 
747
    ["PEAR.php"]=>
 
748
    array(1) {
 
749
      ["role"]=>
 
750
      string(3) "php"
 
751
    }
 
752
    ["System.php"]=>
 
753
    array(1) {
 
754
      ["role"]=>
 
755
      string(3) "php"
 
756
    }
 
757
    ["PEAR\Autoloader.php"]=>
 
758
    array(1) {
 
759
      ["role"]=>
 
760
      string(3) "php"
 
761
    }
 
762
    ["PEAR\Command.php"]=>
 
763
    array(1) {
 
764
      ["role"]=>
 
765
      string(3) "php"
 
766
    }
 
767
    ["PEAR\Command\Auth.php"]=>
 
768
    array(1) {
 
769
      ["role"]=>
 
770
      string(3) "php"
 
771
    }
 
772
    ["PEAR\Command\Build.php"]=>
 
773
    array(1) {
 
774
      ["role"]=>
 
775
      string(3) "php"
 
776
    }
 
777
    ["PEAR\Command\Common.php"]=>
 
778
    array(1) {
 
779
      ["role"]=>
 
780
      string(3) "php"
 
781
    }
 
782
    ["PEAR\Command\Config.php"]=>
 
783
    array(1) {
 
784
      ["role"]=>
 
785
      string(3) "php"
 
786
    }
 
787
    ["PEAR\Command\Install.php"]=>
 
788
    array(1) {
 
789
      ["role"]=>
 
790
      string(3) "php"
 
791
    }
 
792
    ["PEAR\Command\Package.php"]=>
 
793
    array(1) {
 
794
      ["role"]=>
 
795
      string(3) "php"
 
796
    }
 
797
    ["PEAR\Command\Registry.php"]=>
 
798
    array(1) {
 
799
      ["role"]=>
 
800
      string(3) "php"
 
801
    }
 
802
    ["PEAR\Command\Remote.php"]=>
 
803
    array(1) {
 
804
      ["role"]=>
 
805
      string(3) "php"
 
806
    }
 
807
    ["PEAR\Command\Mirror.php"]=>
 
808
    array(1) {
 
809
      ["role"]=>
 
810
      string(3) "php"
 
811
    }
 
812
    ["PEAR\Common.php"]=>
 
813
    array(1) {
 
814
      ["role"]=>
 
815
      string(3) "php"
 
816
    }
 
817
    ["PEAR\Config.php"]=>
 
818
    array(1) {
 
819
      ["role"]=>
 
820
      string(3) "php"
 
821
    }
 
822
    ["PEAR\Dependency.php"]=>
 
823
    array(1) {
 
824
      ["role"]=>
 
825
      string(3) "php"
 
826
    }
 
827
    ["PEAR\Frontend\CLI.php"]=>
 
828
    array(1) {
 
829
      ["role"]=>
 
830
      string(3) "php"
 
831
    }
 
832
    ["PEAR\Builder.php"]=>
 
833
    array(1) {
 
834
      ["role"]=>
 
835
      string(3) "php"
 
836
    }
 
837
    ["PEAR\Installer.php"]=>
 
838
    array(1) {
 
839
      ["role"]=>
 
840
      string(3) "php"
 
841
    }
 
842
    ["PEAR\Packager.php"]=>
 
843
    array(1) {
 
844
      ["role"]=>
 
845
      string(3) "php"
 
846
    }
 
847
    ["PEAR\Registry.php"]=>
 
848
    array(1) {
 
849
      ["role"]=>
 
850
      string(3) "php"
 
851
    }
 
852
    ["PEAR\Remote.php"]=>
 
853
    array(1) {
 
854
      ["role"]=>
 
855
      string(3) "php"
 
856
    }
 
857
    ["OS\Guess.php"]=>
 
858
    array(1) {
 
859
      ["role"]=>
 
860
      string(3) "php"
 
861
    }
 
862
    ["scripts\pear.sh"]=>
 
863
    array(4) {
 
864
      ["role"]=>
 
865
      string(6) "script"
 
866
      ["install-as"]=>
 
867
      string(4) "pear"
 
868
      ["baseinstalldir"]=>
 
869
      string(1) "/"
 
870
      ["replacements"]=>
 
871
      array(4) {
 
872
        [0]=>
 
873
        array(3) {
 
874
          ["from"]=>
 
875
          string(9) "@php_bin@"
 
876
          ["to"]=>
 
877
          string(7) "php_bin"
 
878
          ["type"]=>
 
879
          string(11) "pear-config"
 
880
        }
 
881
        [1]=>
 
882
        array(3) {
 
883
          ["from"]=>
 
884
          string(9) "@php_dir@"
 
885
          ["to"]=>
 
886
          string(7) "php_dir"
 
887
          ["type"]=>
 
888
          string(11) "pear-config"
 
889
        }
 
890
        [2]=>
 
891
        array(3) {
 
892
          ["from"]=>
 
893
          string(14) "@pear_version@"
 
894
          ["to"]=>
 
895
          string(7) "version"
 
896
          ["type"]=>
 
897
          string(12) "package-info"
 
898
        }
 
899
        [3]=>
 
900
        array(3) {
 
901
          ["from"]=>
 
902
          string(14) "@include_path@"
 
903
          ["to"]=>
 
904
          string(7) "php_dir"
 
905
          ["type"]=>
 
906
          string(11) "pear-config"
 
907
        }
 
908
      }
 
909
    }
 
910
    ["scripts\pear.bat"]=>
 
911
    array(5) {
 
912
      ["role"]=>
 
913
      string(6) "script"
 
914
      ["platform"]=>
 
915
      string(7) "windows"
 
916
      ["install-as"]=>
 
917
      string(8) "pear.bat"
 
918
      ["baseinstalldir"]=>
 
919
      string(1) "/"
 
920
      ["replacements"]=>
 
921
      array(3) {
 
922
        [0]=>
 
923
        array(3) {
 
924
          ["from"]=>
 
925
          string(9) "@bin_dir@"
 
926
          ["to"]=>
 
927
          string(7) "bin_dir"
 
928
          ["type"]=>
 
929
          string(11) "pear-config"
 
930
        }
 
931
        [1]=>
 
932
        array(3) {
 
933
          ["from"]=>
 
934
          string(9) "@php_bin@"
 
935
          ["to"]=>
 
936
          string(7) "php_bin"
 
937
          ["type"]=>
 
938
          string(11) "pear-config"
 
939
        }
 
940
        [2]=>
 
941
        array(3) {
 
942
          ["from"]=>
 
943
          string(14) "@include_path@"
 
944
          ["to"]=>
 
945
          string(7) "php_dir"
 
946
          ["type"]=>
 
947
          string(11) "pear-config"
 
948
        }
 
949
      }
 
950
    }
 
951
    ["scripts\pearcmd.php"]=>
 
952
    array(4) {
 
953
      ["role"]=>
 
954
      string(3) "php"
 
955
      ["install-as"]=>
 
956
      string(11) "pearcmd.php"
 
957
      ["baseinstalldir"]=>
 
958
      string(1) "/"
 
959
      ["replacements"]=>
 
960
      array(4) {
 
961
        [0]=>
 
962
        array(3) {
 
963
          ["from"]=>
 
964
          string(9) "@php_bin@"
 
965
          ["to"]=>
 
966
          string(7) "php_bin"
 
967
          ["type"]=>
 
968
          string(11) "pear-config"
 
969
        }
 
970
        [1]=>
 
971
        array(3) {
 
972
          ["from"]=>
 
973
          string(9) "@php_dir@"
 
974
          ["to"]=>
 
975
          string(7) "php_dir"
 
976
          ["type"]=>
 
977
          string(11) "pear-config"
 
978
        }
 
979
        [2]=>
 
980
        array(3) {
 
981
          ["from"]=>
 
982
          string(14) "@pear_version@"
 
983
          ["to"]=>
 
984
          string(7) "version"
 
985
          ["type"]=>
 
986
          string(12) "package-info"
 
987
        }
 
988
        [3]=>
 
989
        array(3) {
 
990
          ["from"]=>
 
991
          string(14) "@include_path@"
 
992
          ["to"]=>
 
993
          string(7) "php_dir"
 
994
          ["type"]=>
 
995
          string(11) "pear-config"
 
996
        }
 
997
      }
 
998
    }
 
999
  }
 
1000
  ["package"]=>
 
1001
  string(4) "test"
 
1002
  ["summary"]=>
 
1003
  string(9) "PEAR test"
 
1004
  ["description"]=>
 
1005
  string(8) "The test"
 
1006
  ["release_license"]=>
 
1007
  string(11) "PHP License"
 
1008
  ["maintainers"]=>
 
1009
  array(1) {
 
1010
    [0]=>
 
1011
    &array(4) {
 
1012
      ["handle"]=>
 
1013
      string(4) "test"
 
1014
      ["role"]=>
 
1015
      string(4) "lead"
 
1016
      ["name"]=>
 
1017
      string(11) "test tester"
 
1018
      ["email"]=>
 
1019
      string(12) "test@php.net"
 
1020
    }
 
1021
  }
 
1022
  ["version"]=>
 
1023
  string(5) "1.3b4"
 
1024
  ["release_date"]=>
 
1025
  string(10) "2003-11-17"
 
1026
  ["release_state"]=>
 
1027
  string(4) "beta"
 
1028
  ["release_notes"]=>
 
1029
  string(4) "test"
 
1030
  ["release_deps"]=>
 
1031
  array(1) {
 
1032
    [1]=>
 
1033
    array(4) {
 
1034
      ["type"]=>
 
1035
      string(3) "ext"
 
1036
      ["rel"]=>
 
1037
      string(3) "has"
 
1038
      ["optional"]=>
 
1039
      string(3) "yes"
 
1040
      ["name"]=>
 
1041
      string(6) "xmlrpc"
 
1042
    }
 
1043
  }
 
1044
}
 
1045
Test 11
 
1046
array(13) {
 
1047
  ["provides"]=>
 
1048
  array(1) {
 
1049
    ["class;furngy"]=>
 
1050
    array(3) {
 
1051
      ["type"]=>
 
1052
      string(5) "class"
 
1053
      ["name"]=>
 
1054
      string(6) "furngy"
 
1055
      ["explicit"]=>
 
1056
      bool(true)
 
1057
    }
 
1058
  }
 
1059
  ["filelist"]=>
 
1060
  &array(28) {
 
1061
    ["package.dtd"]=>
 
1062
    array(1) {
 
1063
      ["role"]=>
 
1064
      string(4) "data"
 
1065
    }
 
1066
    ["template.spec"]=>
 
1067
    array(1) {
 
1068
      ["role"]=>
 
1069
      string(4) "data"
 
1070
    }
 
1071
    ["PEAR.php"]=>
 
1072
    array(1) {
 
1073
      ["role"]=>
 
1074
      string(3) "php"
 
1075
    }
 
1076
    ["System.php"]=>
 
1077
    array(1) {
 
1078
      ["role"]=>
 
1079
      string(3) "php"
 
1080
    }
 
1081
    ["PEAR\Autoloader.php"]=>
 
1082
    array(1) {
 
1083
      ["role"]=>
 
1084
      string(3) "php"
 
1085
    }
 
1086
    ["PEAR\Command.php"]=>
 
1087
    array(1) {
 
1088
      ["role"]=>
 
1089
      string(3) "php"
 
1090
    }
 
1091
    ["PEAR\Command\Auth.php"]=>
 
1092
    array(1) {
 
1093
      ["role"]=>
 
1094
      string(3) "php"
 
1095
    }
 
1096
    ["PEAR\Command\Build.php"]=>
 
1097
    array(1) {
 
1098
      ["role"]=>
 
1099
      string(3) "php"
 
1100
    }
 
1101
    ["PEAR\Command\Common.php"]=>
 
1102
    array(1) {
 
1103
      ["role"]=>
 
1104
      string(3) "php"
 
1105
    }
 
1106
    ["PEAR\Command\Config.php"]=>
 
1107
    array(1) {
 
1108
      ["role"]=>
 
1109
      string(3) "php"
 
1110
    }
 
1111
    ["PEAR\Command\Install.php"]=>
 
1112
    array(1) {
 
1113
      ["role"]=>
 
1114
      string(3) "php"
 
1115
    }
 
1116
    ["PEAR\Command\Package.php"]=>
 
1117
    array(1) {
 
1118
      ["role"]=>
 
1119
      string(3) "php"
 
1120
    }
 
1121
    ["PEAR\Command\Registry.php"]=>
 
1122
    array(1) {
 
1123
      ["role"]=>
 
1124
      string(3) "php"
 
1125
    }
 
1126
    ["PEAR\Command\Remote.php"]=>
 
1127
    array(1) {
 
1128
      ["role"]=>
 
1129
      string(3) "php"
 
1130
    }
 
1131
    ["PEAR\Command\Mirror.php"]=>
 
1132
    array(1) {
 
1133
      ["role"]=>
 
1134
      string(3) "php"
 
1135
    }
 
1136
    ["PEAR\Common.php"]=>
 
1137
    array(1) {
 
1138
      ["role"]=>
 
1139
      string(3) "php"
 
1140
    }
 
1141
    ["PEAR\Config.php"]=>
 
1142
    array(1) {
 
1143
      ["role"]=>
 
1144
      string(3) "php"
 
1145
    }
 
1146
    ["PEAR\Dependency.php"]=>
 
1147
    array(1) {
 
1148
      ["role"]=>
 
1149
      string(3) "php"
 
1150
    }
 
1151
    ["PEAR\Frontend\CLI.php"]=>
 
1152
    array(1) {
 
1153
      ["role"]=>
 
1154
      string(3) "php"
 
1155
    }
 
1156
    ["PEAR\Builder.php"]=>
 
1157
    array(1) {
 
1158
      ["role"]=>
 
1159
      string(3) "php"
 
1160
    }
 
1161
    ["PEAR\Installer.php"]=>
 
1162
    array(1) {
 
1163
      ["role"]=>
 
1164
      string(3) "php"
 
1165
    }
 
1166
    ["PEAR\Packager.php"]=>
 
1167
    array(1) {
 
1168
      ["role"]=>
 
1169
      string(3) "php"
 
1170
    }
 
1171
    ["PEAR\Registry.php"]=>
 
1172
    array(1) {
 
1173
      ["role"]=>
 
1174
      string(3) "php"
 
1175
    }
 
1176
    ["PEAR\Remote.php"]=>
 
1177
    array(1) {
 
1178
      ["role"]=>
 
1179
      string(3) "php"
 
1180
    }
 
1181
    ["OS\Guess.php"]=>
 
1182
    array(1) {
 
1183
      ["role"]=>
 
1184
      string(3) "php"
 
1185
    }
 
1186
    ["scripts\pear.sh"]=>
 
1187
    array(4) {
 
1188
      ["role"]=>
 
1189
      string(6) "script"
 
1190
      ["install-as"]=>
 
1191
      string(4) "pear"
 
1192
      ["baseinstalldir"]=>
 
1193
      string(1) "/"
 
1194
      ["replacements"]=>
 
1195
      array(4) {
 
1196
        [0]=>
 
1197
        array(3) {
 
1198
          ["from"]=>
 
1199
          string(9) "@php_bin@"
 
1200
          ["to"]=>
 
1201
          string(7) "php_bin"
 
1202
          ["type"]=>
 
1203
          string(11) "pear-config"
 
1204
        }
 
1205
        [1]=>
 
1206
        array(3) {
 
1207
          ["from"]=>
 
1208
          string(9) "@php_dir@"
 
1209
          ["to"]=>
 
1210
          string(7) "php_dir"
 
1211
          ["type"]=>
 
1212
          string(11) "pear-config"
 
1213
        }
 
1214
        [2]=>
 
1215
        array(3) {
 
1216
          ["from"]=>
 
1217
          string(14) "@pear_version@"
 
1218
          ["to"]=>
 
1219
          string(7) "version"
 
1220
          ["type"]=>
 
1221
          string(12) "package-info"
 
1222
        }
 
1223
        [3]=>
 
1224
        array(3) {
 
1225
          ["from"]=>
 
1226
          string(14) "@include_path@"
 
1227
          ["to"]=>
 
1228
          string(7) "php_dir"
 
1229
          ["type"]=>
 
1230
          string(11) "pear-config"
 
1231
        }
 
1232
      }
 
1233
    }
 
1234
    ["scripts\pear.bat"]=>
 
1235
    array(5) {
 
1236
      ["role"]=>
 
1237
      string(6) "script"
 
1238
      ["platform"]=>
 
1239
      string(7) "windows"
 
1240
      ["install-as"]=>
 
1241
      string(8) "pear.bat"
 
1242
      ["baseinstalldir"]=>
 
1243
      string(1) "/"
 
1244
      ["replacements"]=>
 
1245
      array(3) {
 
1246
        [0]=>
 
1247
        array(3) {
 
1248
          ["from"]=>
 
1249
          string(9) "@bin_dir@"
 
1250
          ["to"]=>
 
1251
          string(7) "bin_dir"
 
1252
          ["type"]=>
 
1253
          string(11) "pear-config"
 
1254
        }
 
1255
        [1]=>
 
1256
        array(3) {
 
1257
          ["from"]=>
 
1258
          string(9) "@php_bin@"
 
1259
          ["to"]=>
 
1260
          string(7) "php_bin"
 
1261
          ["type"]=>
 
1262
          string(11) "pear-config"
 
1263
        }
 
1264
        [2]=>
 
1265
        array(3) {
 
1266
          ["from"]=>
 
1267
          string(14) "@include_path@"
 
1268
          ["to"]=>
 
1269
          string(7) "php_dir"
 
1270
          ["type"]=>
 
1271
          string(11) "pear-config"
 
1272
        }
 
1273
      }
 
1274
    }
 
1275
    ["scripts\pearcmd.php"]=>
 
1276
    array(4) {
 
1277
      ["role"]=>
 
1278
      string(3) "php"
 
1279
      ["install-as"]=>
 
1280
      string(11) "pearcmd.php"
 
1281
      ["baseinstalldir"]=>
 
1282
      string(1) "/"
 
1283
      ["replacements"]=>
 
1284
      array(4) {
 
1285
        [0]=>
 
1286
        array(3) {
 
1287
          ["from"]=>
 
1288
          string(9) "@php_bin@"
 
1289
          ["to"]=>
 
1290
          string(7) "php_bin"
 
1291
          ["type"]=>
 
1292
          string(11) "pear-config"
 
1293
        }
 
1294
        [1]=>
 
1295
        array(3) {
 
1296
          ["from"]=>
 
1297
          string(9) "@php_dir@"
 
1298
          ["to"]=>
 
1299
          string(7) "php_dir"
 
1300
          ["type"]=>
 
1301
          string(11) "pear-config"
 
1302
        }
 
1303
        [2]=>
 
1304
        array(3) {
 
1305
          ["from"]=>
 
1306
          string(14) "@pear_version@"
 
1307
          ["to"]=>
 
1308
          string(7) "version"
 
1309
          ["type"]=>
 
1310
          string(12) "package-info"
 
1311
        }
 
1312
        [3]=>
 
1313
        array(3) {
 
1314
          ["from"]=>
 
1315
          string(14) "@include_path@"
 
1316
          ["to"]=>
 
1317
          string(7) "php_dir"
 
1318
          ["type"]=>
 
1319
          string(11) "pear-config"
 
1320
        }
 
1321
      }
 
1322
    }
 
1323
  }
 
1324
  ["package"]=>
 
1325
  string(4) "test"
 
1326
  ["summary"]=>
 
1327
  string(9) "PEAR test"
 
1328
  ["description"]=>
 
1329
  string(8) "The test"
 
1330
  ["release_license"]=>
 
1331
  string(11) "PHP License"
 
1332
  ["maintainers"]=>
 
1333
  array(1) {
 
1334
    [0]=>
 
1335
    &array(4) {
 
1336
      ["handle"]=>
 
1337
      string(4) "test"
 
1338
      ["role"]=>
 
1339
      string(4) "lead"
 
1340
      ["name"]=>
 
1341
      string(11) "test tester"
 
1342
      ["email"]=>
 
1343
      string(12) "test@php.net"
 
1344
    }
 
1345
  }
 
1346
  ["version"]=>
 
1347
  string(5) "1.3b4"
 
1348
  ["release_date"]=>
 
1349
  string(10) "2003-11-17"
 
1350
  ["release_state"]=>
 
1351
  string(4) "beta"
 
1352
  ["release_notes"]=>
 
1353
  string(4) "test"
 
1354
  ["release_deps"]=>
 
1355
  array(1) {
 
1356
    [1]=>
 
1357
    array(4) {
 
1358
      ["type"]=>
 
1359
      string(3) "ext"
 
1360
      ["rel"]=>
 
1361
      string(3) "has"
 
1362
      ["optional"]=>
 
1363
      string(3) "yes"
 
1364
      ["name"]=>
 
1365
      string(6) "xmlrpc"
 
1366
    }
 
1367
  }
 
1368
  ["configure_options"]=>
 
1369
  array(1) {
 
1370
    [0]=>
 
1371
    array(3) {
 
1372
      ["name"]=>
 
1373
      string(4) "test"
 
1374
      ["prompt"]=>
 
1375
      string(15) "The prompt test"
 
1376
      ["default"]=>
 
1377
      string(3) "foo"
 
1378
    }
 
1379
  }
 
1380
}
 
1381
Test 12
 
1382
array(14) {
 
1383
  ["provides"]=>
 
1384
  array(1) {
 
1385
    ["class;furngy"]=>
 
1386
    array(3) {
 
1387
      ["type"]=>
 
1388
      string(5) "class"
 
1389
      ["name"]=>
 
1390
      string(6) "furngy"
 
1391
      ["explicit"]=>
 
1392
      bool(true)
 
1393
    }
 
1394
  }
 
1395
  ["filelist"]=>
 
1396
  &array(28) {
 
1397
    ["package.dtd"]=>
 
1398
    array(1) {
 
1399
      ["role"]=>
 
1400
      string(4) "data"
 
1401
    }
 
1402
    ["template.spec"]=>
 
1403
    array(1) {
 
1404
      ["role"]=>
 
1405
      string(4) "data"
 
1406
    }
 
1407
    ["PEAR.php"]=>
 
1408
    array(1) {
 
1409
      ["role"]=>
 
1410
      string(3) "php"
 
1411
    }
 
1412
    ["System.php"]=>
 
1413
    array(1) {
 
1414
      ["role"]=>
 
1415
      string(3) "php"
 
1416
    }
 
1417
    ["PEAR\Autoloader.php"]=>
 
1418
    array(1) {
 
1419
      ["role"]=>
 
1420
      string(3) "php"
 
1421
    }
 
1422
    ["PEAR\Command.php"]=>
 
1423
    array(1) {
 
1424
      ["role"]=>
 
1425
      string(3) "php"
 
1426
    }
 
1427
    ["PEAR\Command\Auth.php"]=>
 
1428
    array(1) {
 
1429
      ["role"]=>
 
1430
      string(3) "php"
 
1431
    }
 
1432
    ["PEAR\Command\Build.php"]=>
 
1433
    array(1) {
 
1434
      ["role"]=>
 
1435
      string(3) "php"
 
1436
    }
 
1437
    ["PEAR\Command\Common.php"]=>
 
1438
    array(1) {
 
1439
      ["role"]=>
 
1440
      string(3) "php"
 
1441
    }
 
1442
    ["PEAR\Command\Config.php"]=>
 
1443
    array(1) {
 
1444
      ["role"]=>
 
1445
      string(3) "php"
 
1446
    }
 
1447
    ["PEAR\Command\Install.php"]=>
 
1448
    array(1) {
 
1449
      ["role"]=>
 
1450
      string(3) "php"
 
1451
    }
 
1452
    ["PEAR\Command\Package.php"]=>
 
1453
    array(1) {
 
1454
      ["role"]=>
 
1455
      string(3) "php"
 
1456
    }
 
1457
    ["PEAR\Command\Registry.php"]=>
 
1458
    array(1) {
 
1459
      ["role"]=>
 
1460
      string(3) "php"
 
1461
    }
 
1462
    ["PEAR\Command\Remote.php"]=>
 
1463
    array(1) {
 
1464
      ["role"]=>
 
1465
      string(3) "php"
 
1466
    }
 
1467
    ["PEAR\Command\Mirror.php"]=>
 
1468
    array(1) {
 
1469
      ["role"]=>
 
1470
      string(3) "php"
 
1471
    }
 
1472
    ["PEAR\Common.php"]=>
 
1473
    array(1) {
 
1474
      ["role"]=>
 
1475
      string(3) "php"
 
1476
    }
 
1477
    ["PEAR\Config.php"]=>
 
1478
    array(1) {
 
1479
      ["role"]=>
 
1480
      string(3) "php"
 
1481
    }
 
1482
    ["PEAR\Dependency.php"]=>
 
1483
    array(1) {
 
1484
      ["role"]=>
 
1485
      string(3) "php"
 
1486
    }
 
1487
    ["PEAR\Frontend\CLI.php"]=>
 
1488
    array(1) {
 
1489
      ["role"]=>
 
1490
      string(3) "php"
 
1491
    }
 
1492
    ["PEAR\Builder.php"]=>
 
1493
    array(1) {
 
1494
      ["role"]=>
 
1495
      string(3) "php"
 
1496
    }
 
1497
    ["PEAR\Installer.php"]=>
 
1498
    array(1) {
 
1499
      ["role"]=>
 
1500
      string(3) "php"
 
1501
    }
 
1502
    ["PEAR\Packager.php"]=>
 
1503
    array(1) {
 
1504
      ["role"]=>
 
1505
      string(3) "php"
 
1506
    }
 
1507
    ["PEAR\Registry.php"]=>
 
1508
    array(1) {
 
1509
      ["role"]=>
 
1510
      string(3) "php"
 
1511
    }
 
1512
    ["PEAR\Remote.php"]=>
 
1513
    array(1) {
 
1514
      ["role"]=>
 
1515
      string(3) "php"
 
1516
    }
 
1517
    ["OS\Guess.php"]=>
 
1518
    array(1) {
 
1519
      ["role"]=>
 
1520
      string(3) "php"
 
1521
    }
 
1522
    ["scripts\pear.sh"]=>
 
1523
    array(4) {
 
1524
      ["role"]=>
 
1525
      string(6) "script"
 
1526
      ["install-as"]=>
 
1527
      string(4) "pear"
 
1528
      ["baseinstalldir"]=>
 
1529
      string(1) "/"
 
1530
      ["replacements"]=>
 
1531
      array(4) {
 
1532
        [0]=>
 
1533
        array(3) {
 
1534
          ["from"]=>
 
1535
          string(9) "@php_bin@"
 
1536
          ["to"]=>
 
1537
          string(7) "php_bin"
 
1538
          ["type"]=>
 
1539
          string(11) "pear-config"
 
1540
        }
 
1541
        [1]=>
 
1542
        array(3) {
 
1543
          ["from"]=>
 
1544
          string(9) "@php_dir@"
 
1545
          ["to"]=>
 
1546
          string(7) "php_dir"
 
1547
          ["type"]=>
 
1548
          string(11) "pear-config"
 
1549
        }
 
1550
        [2]=>
 
1551
        array(3) {
 
1552
          ["from"]=>
 
1553
          string(14) "@pear_version@"
 
1554
          ["to"]=>
 
1555
          string(7) "version"
 
1556
          ["type"]=>
 
1557
          string(12) "package-info"
 
1558
        }
 
1559
        [3]=>
 
1560
        array(3) {
 
1561
          ["from"]=>
 
1562
          string(14) "@include_path@"
 
1563
          ["to"]=>
 
1564
          string(7) "php_dir"
 
1565
          ["type"]=>
 
1566
          string(11) "pear-config"
 
1567
        }
 
1568
      }
 
1569
    }
 
1570
    ["scripts\pear.bat"]=>
 
1571
    array(5) {
 
1572
      ["role"]=>
 
1573
      string(6) "script"
 
1574
      ["platform"]=>
 
1575
      string(7) "windows"
 
1576
      ["install-as"]=>
 
1577
      string(8) "pear.bat"
 
1578
      ["baseinstalldir"]=>
 
1579
      string(1) "/"
 
1580
      ["replacements"]=>
 
1581
      array(3) {
 
1582
        [0]=>
 
1583
        array(3) {
 
1584
          ["from"]=>
 
1585
          string(9) "@bin_dir@"
 
1586
          ["to"]=>
 
1587
          string(7) "bin_dir"
 
1588
          ["type"]=>
 
1589
          string(11) "pear-config"
 
1590
        }
 
1591
        [1]=>
 
1592
        array(3) {
 
1593
          ["from"]=>
 
1594
          string(9) "@php_bin@"
 
1595
          ["to"]=>
 
1596
          string(7) "php_bin"
 
1597
          ["type"]=>
 
1598
          string(11) "pear-config"
 
1599
        }
 
1600
        [2]=>
 
1601
        array(3) {
 
1602
          ["from"]=>
 
1603
          string(14) "@include_path@"
 
1604
          ["to"]=>
 
1605
          string(7) "php_dir"
 
1606
          ["type"]=>
 
1607
          string(11) "pear-config"
 
1608
        }
 
1609
      }
 
1610
    }
 
1611
    ["scripts\pearcmd.php"]=>
 
1612
    array(4) {
 
1613
      ["role"]=>
 
1614
      string(3) "php"
 
1615
      ["install-as"]=>
 
1616
      string(11) "pearcmd.php"
 
1617
      ["baseinstalldir"]=>
 
1618
      string(1) "/"
 
1619
      ["replacements"]=>
 
1620
      array(4) {
 
1621
        [0]=>
 
1622
        array(3) {
 
1623
          ["from"]=>
 
1624
          string(9) "@php_bin@"
 
1625
          ["to"]=>
 
1626
          string(7) "php_bin"
 
1627
          ["type"]=>
 
1628
          string(11) "pear-config"
 
1629
        }
 
1630
        [1]=>
 
1631
        array(3) {
 
1632
          ["from"]=>
 
1633
          string(9) "@php_dir@"
 
1634
          ["to"]=>
 
1635
          string(7) "php_dir"
 
1636
          ["type"]=>
 
1637
          string(11) "pear-config"
 
1638
        }
 
1639
        [2]=>
 
1640
        array(3) {
 
1641
          ["from"]=>
 
1642
          string(14) "@pear_version@"
 
1643
          ["to"]=>
 
1644
          string(7) "version"
 
1645
          ["type"]=>
 
1646
          string(12) "package-info"
 
1647
        }
 
1648
        [3]=>
 
1649
        array(3) {
 
1650
          ["from"]=>
 
1651
          string(14) "@include_path@"
 
1652
          ["to"]=>
 
1653
          string(7) "php_dir"
 
1654
          ["type"]=>
 
1655
          string(11) "pear-config"
 
1656
        }
 
1657
      }
 
1658
    }
 
1659
  }
 
1660
  ["package"]=>
 
1661
  string(4) "test"
 
1662
  ["summary"]=>
 
1663
  string(9) "PEAR test"
 
1664
  ["description"]=>
 
1665
  string(8) "The test"
 
1666
  ["release_license"]=>
 
1667
  string(11) "PHP License"
 
1668
  ["maintainers"]=>
 
1669
  array(1) {
 
1670
    [0]=>
 
1671
    &array(4) {
 
1672
      ["handle"]=>
 
1673
      string(4) "test"
 
1674
      ["role"]=>
 
1675
      string(4) "lead"
 
1676
      ["name"]=>
 
1677
      string(11) "test tester"
 
1678
      ["email"]=>
 
1679
      string(12) "test@php.net"
 
1680
    }
 
1681
  }
 
1682
  ["version"]=>
 
1683
  string(5) "1.3b4"
 
1684
  ["release_date"]=>
 
1685
  string(10) "2003-11-17"
 
1686
  ["release_state"]=>
 
1687
  string(4) "beta"
 
1688
  ["release_notes"]=>
 
1689
  string(4) "test"
 
1690
  ["release_deps"]=>
 
1691
  array(1) {
 
1692
    [1]=>
 
1693
    array(4) {
 
1694
      ["type"]=>
 
1695
      string(3) "ext"
 
1696
      ["rel"]=>
 
1697
      string(3) "has"
 
1698
      ["optional"]=>
 
1699
      string(3) "yes"
 
1700
      ["name"]=>
 
1701
      string(6) "xmlrpc"
 
1702
    }
 
1703
  }
 
1704
  ["configure_options"]=>
 
1705
  array(1) {
 
1706
    [0]=>
 
1707
    array(3) {
 
1708
      ["name"]=>
 
1709
      string(4) "test"
 
1710
      ["prompt"]=>
 
1711
      string(15) "The prompt test"
 
1712
      ["default"]=>
 
1713
      string(3) "foo"
 
1714
    }
 
1715
  }
 
1716
  ["changelog"]=>
 
1717
  array(2) {
 
1718
    [0]=>
 
1719
    &array(5) {
 
1720
      ["version"]=>
 
1721
      string(3) "0.1"
 
1722
      ["release_date"]=>
 
1723
      string(10) "2003-07-21"
 
1724
      ["release_license"]=>
 
1725
      string(11) "PHP License"
 
1726
      ["release_state"]=>
 
1727
      string(5) "alpha"
 
1728
      ["release_notes"]=>
 
1729
      string(22) "First release of test
 
1730
"
 
1731
    }
 
1732
    [1]=>
 
1733
    &array(5) {
 
1734
      ["version"]=>
 
1735
      string(3) "0.2"
 
1736
      ["release_date"]=>
 
1737
      string(10) "2003-07-21"
 
1738
      ["release_license"]=>
 
1739
      string(11) "PHP License"
 
1740
      ["release_state"]=>
 
1741
      string(5) "alpha"
 
1742
      ["release_notes"]=>
 
1743
      string(260) "Generation of package.xml from scratch is now supported.  In addition,
 
1744
generation of <provides> is supported and so is addition of
 
1745
maintainers and configure options
 
1746
 
 
1747
- Fixed a bug in <release> generation
 
1748
- Added _addProvides() to generate a <provides> section
 
1749
"
 
1750
    }
 
1751
  }
 
1752
}
 
 
b'\\ No newline at end of file'