update : 2015.11.03
php.shukuma.com

검색:
 
 
Retrieves APC's Shared Memory Allocation information

apc_sma_info

(PECL apc >= 2.0.0)

apc_sma_info Retrieves APC's Shared Memory Allocation information

설명

array apc_sma_info ([ bool $limited = false ] )

Retrieves APC's Shared Memory Allocation information.

인수

limited

When set to FALSE (default) apc_sma_info() will return a detailed information about each segment.

반환값

Array of Shared Memory Allocation data; FALSE on failure.

예제

Example #1 A apc_sma_info() example

<?php
print_r
(apc_sma_info());
?>

위 예제의 출력 예시:

Array
(
    [num_seg] => 1
    [seg_size] => 31457280
    [avail_mem] => 31448408
    [block_lists] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [size] => 31448408
                            [offset] => 8864
                        )

                )

        )

)