hiphop-php /hphp/test/slow/apc/1813.php

Language PHP Lines 25
MD5 Hash 9cc8447149305f928b362aa77966784f Estimated Cost $398 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

$a = array(1);
$a[] =& $a[0];
$a[0] = 2;
print_r($a);

apc_store('table', $a);
$b = apc_fetch('table', $b);
print_r($b);
$b[0] = 3;
print_r($b);

$a = array('xyz' => 'tuv');
$a[] =& $a[0];
$a[0] = 2;
print_r($a);

apc_store('table', $a);
$b = apc_fetch('table', $b);
print_r($b);
$b[0] = 3;
print_r($b);
Back to Top