File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
lang /
007.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 8 months 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: Function call with global and static variables
3: --FILE--
4: <?php
5: error_reporting(0);
6: $a = 10;
7:
8: function Test()
9: {
10: static $a=1;
11: global $b;
12: $c = 1;
13: $b = 5;
14: echo "$a $b ";
15: $a++;
16: $c++;
17: echo "$a $c ";
18: }
19:
20: Test();
21: echo "$a $b $c ";
22: Test();
23: echo "$a $b $c ";
24: Test();
25: ?>
26: --EXPECT--
27: 1 5 2 2 10 5 2 5 3 2 10 5 3 5 4 2
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>