Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6895249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:53:04+00:00 2026-05-27T06:53:04+00:00

main.php: require /root/test.php; print_r(apc_cache_info()); apc_bin_dump(array(/root/test.php)); test.php: $x = a; echo $x; test.php is successfully

  • 0

main.php:

require "/root/test.php";
print_r(apc_cache_info());
apc_bin_dump(array("/root/test.php"));

test.php:

$x = "a";
echo $x;

test.php is successfully executed and the “a” is echoed.

apc_cache_info() shows that both files have been cached:

[...]
 [cache_list] => Array
        (
            [0] => Array
                (
                    [type] => file
                    [device] => 2049
                    [inode] => 26472
                    [filename] => /root/test.php
                    [num_hits] => 0
                    [mtime] => 1322736219
                    [creation_time] => 1322737193
                    [deletion_time] => 0
                    [access_time] => 1322737193
                    [ref_count] => 0
                    [mem_size] => 4168
                )

            [1] => Array
                (
                    [type] => file
                    [device] => 2049
                    [inode] => 26476
                    [filename] => /root/main.php
                    [num_hits] => 0
                    [mtime] => 1322736869
                    [creation_time] => 1322737193
                    [deletion_time] => 0
                    [access_time] => 1322737193
                    [ref_count] => 0
                    [mem_size] => 4168
                )

        )
[...]

But the line with apc_bin_dump yields a “mysterious” warning:

    :PHP Warning:  apc_bin_dump(): Excluding some files from apc_bin_dump[file].  Cached files must be included using full path with apc.stat=0. in /root/main.php on line 5
PHP Stack trace:
PHP   1. {main}() /root/main.php:0
PHP   2. apc_bin_dump() /root/main.php:5
PHP Warning:  apc_bin_dump(): Excluding some files from apc_bin_dump[file].  Cached files must be included using full path with apc.stat=0. in /root/main.php on line 5
PHP Stack trace:
PHP   1. {main}() /root/main.php:0
PHP   2. apc_bin_dump() /root/main.php:5

what is wrong?


APC settings for CLI:

apc

APC Support => enabled
Version => 3.1.7
APC Debugging => Disabled
MMAP Support => Enabled
MMAP File Mask =>
Locking type => pthread mutex Locks
Serialization Support => php
Revision => $Revision: 307215 $
Build Date => Feb 27 2011 19:39:21

Directive => Local Value => Master Value
apc.cache_by_default => On => On
apc.canonicalize => On => On
apc.coredump_unmap => Off => Off
apc.enable_cli => On => On
apc.enabled => On => On
apc.file_md5 => Off => Off
apc.file_update_protection => 2 => 2
apc.filters => no value => no value
apc.gc_ttl => 3600 => 3600
apc.include_once_override => Off => Off
apc.lazy_classes => Off => Off
apc.lazy_functions => Off => Off
apc.max_file_size => 1M => 1M
apc.mmap_file_mask => no value => no value
apc.num_files_hint => 1000 => 1000
apc.preload_path => no value => no value
apc.report_autofilter => Off => Off
apc.rfc1867 => Off => Off
apc.rfc1867_freq => 0 => 0
apc.rfc1867_name => APC_UPLOAD_PROGRESS => APC_UPLOAD_PROGRESS
apc.rfc1867_prefix => upload_ => upload_
apc.rfc1867_ttl => 3600 => 3600
apc.serializer => default => default
apc.shm_segments => 1 => 1
apc.shm_size => 32M => 32M
apc.slam_defense => On => On
apc.stat => On => On
apc.stat_ctime => Off => Off
apc.ttl => 0 => 0
apc.use_request_time => On => On
apc.user_entries_hint => 4096 => 4096
apc.user_ttl => 0 => 0
apc.write_lock => On => On
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:53:05+00:00Added an answer on May 27, 2026 at 6:53 am

    Its written within the message itself

    Cached files must be included using full path with apc.stat=0

    and your setting is

    apc.stat => On => On
    

    Disable apc.stat or don’t use apc_bin_dump(). The message tells you that both at once is not possible (for whatever reason).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Idea I have a main PHP page that loads content in DIV's from
What are the main differences between PHP and Java that someone proficient in PHP
I have a php script that's not working correctly. when i test it using
Alright, when I compile this bit of code to test: <?php require('index.inc'); $page =
How do I make the following url forbidden in apache; main/index.php?site=ing I have tried
If I create an object inside of the main scope: INDEX.PHP: $db = new
I have a problem in integrating PHP and JQuery: My main file is MyFile.html
There is any ways to listing all main directories present in php server(may it
I'm planning to make a very simple program using php and mySQL. The main
What are the 'costs' involved in calling an empty PHP function? The main purpose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.