I am running php-5.2.5 with APC-3.0.19
Server is Apache 1.3
APC is running, tested with:
<?php
$bar = 'BAR';
apc_store('foo', $bar);
var_dump(apc_fetch('foo'));
?>
This returns correctly: string(3) "BAR"
Next i tried this script:
http://www.ibm.com/developerworks/library/os-php-v525/index.html
The progress bar wouldn't change.
Then i altered the getprogress.php:
<?php
if(isset($_GET['progress_key'])) {
if($status = apc_fetch('upload_'.$_GET['progress_key']))
echo $status['current']/$status['total']*100;
else echo "50";
}
?>
After that change the progressbar would immediately jump to 50% and stay there, so apc_fetch() returns false and the else-case echos 50.
Does anyone have an idea what might be the problem?
I haven't got Suhosin running.
php.ini settings for apc are:
[APC]
apc.enable_cli = 1
apc.enabled = 1
apc.shm_segments = 1
apc.optimization = 0
apc.shm_size = 128
apc.ttl = 7200
apc.user_ttl = 7200
apc.max_file_size = 200M
apc.mmap_file_mask = /tmp/apc.XXXXXX
apc.num_files_hint = 1024
apc.rfc1867 = 1
apc.rfc1867_prefix = upload_
apc.rfc1867_name = APC_UPLOAD_PROGRESS
apc.rfc1867_freq = 0