add bitset operations and tests
[hiphop-php.git] / hphp / test / slow / scalar_as_array_warning_compat.php
blob2330210eec6dcaedad2c6cc9ec2aa8d703bdb9cc
1 <?php
3 error_reporting(E_ALL);
5 $bad_bases = array(
6 null,
7 0,
8 1,
9 0.0,
10 1.0,
11 false,
12 true
15 foreach ($bad_bases as $bad_base) {
16 echo "--Start--\n";
17 var_dump($bad_base);
19 // zend 5.5 doesn't warn on this access, but warns on all others
20 $c = $bad_base[0];
22 $bad_base[0] = 1;
24 $result = ($bad_base[0] += 1);
26 $result = ($bad_base[] = 1);
28 echo "--End--\n\n";