File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
lang /
bug24652.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, 5 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: Bug #24652 (broken array_flip())
3: --FILE--
4: <?php
5: /* This works */
6: $f = array('7' => 0);
7: var_dump($f);
8: var_dump(array_key_exists(7, $f));
9: var_dump(array_key_exists('7', $f));
10:
11: print "----------\n";
12: /* This doesn't */
13: $f = array_flip(array('7'));
14: var_dump($f);
15: var_dump(array_key_exists(7, $f));
16: var_dump(array_key_exists('7', $f));
17: ?>
18: --EXPECT--
19: array(1) {
20: [7]=>
21: int(0)
22: }
23: bool(true)
24: bool(true)
25: ----------
26: array(1) {
27: [7]=>
28: int(0)
29: }
30: bool(true)
31: bool(true)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>