repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add bitset operations and tests
[hiphop-php.git]
/
hphp
/
test
/
slow
/
scalar_as_array_warning_compat.php
blob
2330210eec6dcaedad2c6cc9ec2aa8d703bdb9cc
1
<
?php
2
3
error_reporting
(
E_ALL
);
4
5
$bad_bases
=
array
(
6
null
,
7
0
,
8
1
,
9
0.0
,
10
1.0
,
11
false
,
12
true
13
);
14
15
foreach
(
$bad_bases
as
$bad_base
) {
16
echo
"--Start--
\n
"
;
17
var_dump
(
$bad_base
);
18
19
// zend 5.5 doesn't warn on this access, but warns on all others
20
$c
=
$bad_base
[
0
];
21
22
$bad_base
[
0
] =
1
;
23
24
$result
= (
$bad_base
[
0
]
+
=
1
);
25
26
$result
= (
$bad_base
[] =
1
);
27
28
echo
"--End--
\n\n
"
;
29
}