|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-05-11 04:37 UTC] frasanz at unizar dot es
Description:
------------
APC Version 3.0.15-dev
PHP Version 5.2.1
APC Host 155.210.18.95
Server Software Microsoft-IIS/6.0
Shared Memory 1 Segment(s) with 64.0 MBytes
(IPC shared memory, file locking)
Start Time 2007/05/11 10:31:55
Uptime 0 minutes (Uptime value doesn't change)
File Upload Support 1
apc.cache_by_default 1
apc.enable_cli 0
apc.enabled 1
apc.file_update_protection 2
apc.filters
apc.gc_ttl 3600
apc.include_once_override 0
apc.localcache 0
apc.localcache.size 512
apc.max_file_size 1M
apc.num_files_hint 1000
apc.report_autofilter 0
apc.rfc1867 1
apc.shm_segments 1
apc.shm_size 64
apc.slam_defense 0
apc.stat 0
apc.stat_ctime 0
apc.ttl 7200
apc.user_entries_hint 4096
apc.user_ttl 7200
apc.write_lock 1
Reproduce code:
---------------
Script1---------
<?php
$bar = 'BAR';
apc_store('foo', $bar);
?>
Script2---------
<?php
var_dump(apc_fetch('foo'));
?>
Expected result:
----------------
After running Script1+Script2:
string(3) "BAR"
Actual result:
--------------
After running Script1+Script2:
bool(false)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 04:00:01 2025 UTC |
More to the point, does this script work <?php $bar = 'BAR'; apc_store('foo', $bar); var_dump(apc_fetch('foo')); ?> IIRC, fastcgi calls MINIT on modules *after* it has forked, which makes it nearly (well, nearly) impossible for apc to share data across them. CGI obviously will not work with the example below.The script: <?php $bar = 'BAR'; apc_store('foo', $bar); var_dump(apc_fetch('foo')); ?> Works. PHP is configured as FASTCGI.