Fatal error: Unknown function: eaccelerator_get() in somefile

eAccelerator_get and eAccelerator_put functions are now disabled by default. These functions have been disabled because when leaving them on without any precautions these functions can be used for a local DoS attack by keep putting data in shared memory.

Please refer: http://eaccelerator.net/ticket/37

You can, if you iesh to, enable it is configure with the following attribute

--with-eaccelerator-shared-memory

Installation.
————


export PHP_PREFIX="/usr"

$PHP_PREFIX/bin/phpize

./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config --with-eaccelerator-shared-memory

make

make install

Advertisements

One Response to “Fatal error: Unknown function: eaccelerator_get() in somefile”

  1. SiiN Says:

    Test page with functions and cached data

    PHP Code:
    <?php
    $rfunc = get_extension_funcs( ‘eaccelerator’ );
    print_r($rfunc);

    function ea ($str)
    {
    eaccelerator_put(“testkey”, $str);
    for ($i = 0; $i

    Output:

    PHP Code:
    Array (
    [0] => eaccelerator_put
    [1] => eaccelerator_get
    [2] => eaccelerator_rm
    [3] => eaccelerator_gc
    [4] => eaccelerator_lock
    [5] => eaccelerator_unlock
    [6] => eaccelerator_caching
    [7] => eaccelerator_optimizer
    [8] => eaccelerator_clear
    [9] => eaccelerator_clean
    [10] => eaccelerator_info
    [11] => eaccelerator_purge
    [12] => eaccelerator_cached_scripts
    [13] => eaccelerator_removed_scripts
    [14] => eaccelerator_list_keys
    [15] => eaccelerator_encode
    [16] => eaccelerator_load
    [17] => _eaccelerator_loader_file
    [18] => _eaccelerator_loader_line
    )

    some_value

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s