File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
014.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: get_included_files() tests
3: --FILE--
4: <?php
5:
6: var_dump(get_included_files());
7:
8: include(dirname(__FILE__)."/014.inc");
9: var_dump(get_included_files());
10:
11: var_dump(get_included_files(1,1));
12:
13: include_once(dirname(__FILE__)."/014.inc");
14: var_dump(get_included_files());
15:
16: var_dump(get_included_files(1));
17:
18: include(dirname(__FILE__)."/014.inc");
19: var_dump(get_included_files());
20:
21: echo "Done\n";
22: ?>
23: --EXPECTF--
24: array(1) {
25: [0]=>
26: string(%d) "%s"
27: }
28: array(2) {
29: [0]=>
30: string(%d) "%s"
31: [1]=>
32: string(%d) "%s"
33: }
34:
35: Warning: get_included_files() expects exactly 0 parameters, 2 given in %s on line %d
36: NULL
37: array(2) {
38: [0]=>
39: string(%d) "%s"
40: [1]=>
41: string(%d) "%s"
42: }
43:
44: Warning: get_included_files() expects exactly 0 parameters, 1 given in %s on line %d
45: NULL
46: array(2) {
47: [0]=>
48: string(%d) "%s"
49: [1]=>
50: string(%d) "%s"
51: }
52: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>