Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with PHP5 opcache #1010

Closed
flyn-org opened this issue Mar 9, 2015 · 3 comments

Comments

Projects
None yet
4 participants
@flyn-org
Copy link
Contributor

commented Mar 9, 2015

I am trying to add PHP5's opcache to our PHP5 packages. Everything builds, but running php-cgi causes:

$ php-cgi
PHP Warning: Module 'ctype' already loaded in Unknown on line 0
Sun Mar 8 20:48:31 2015 (26900): Fatal Error Unable to allocate shared memory segment of 8388608 bytes: unknown: Numerical result out of range (34)

Has anyone seen this?

flyn-org referenced this issue Mar 9, 2015

php5: update to 5.6.6
Signed-off-by: W. Michael Petullo <mike@flyn.org>
@plntyk

This comment has been minimized.

Copy link
Contributor

commented Mar 9, 2015

@djdeeles

This comment has been minimized.

Copy link

commented Apr 12, 2015

Any news?

@mhei mhei closed this in cd0bcd2 May 17, 2015

@mhei

This comment has been minimized.

Copy link
Member

commented May 17, 2015

This is my simple test setup running on a Asus WL-500gP v2. Please verify with your real world setups and report back. Thanks.

root@OpenWrt:/tmp# cat /tmp/test.php

<?php
  print_r(opcache_get_status());

root@OpenWrt:/tmp# php-cli /tmp/test.php

Array
(
    [opcache_enabled] => 1
    [cache_full] =>
    [restart_pending] =>
    [restart_in_progress] =>
    [memory_usage] => Array
        (
            [used_memory] => 5251528
            [free_memory] => 61857336
            [wasted_memory] => 0
            [current_wasted_percentage] => 0
        )

    [interned_strings_usage] => Array
        (
            [buffer_size] => 4194304
            [used_memory] => 92376
            [free_memory] => 4101928
            [number_of_strings] => 1740
        )

    [opcache_statistics] => Array
        (
            [num_cached_scripts] => 1
            [num_cached_keys] => 1
            [max_cached_keys] => 223
            [hits] => 0
            [start_time] => 1431729886
            [last_restart_time] => 0
            [oom_restarts] => 0
            [hash_restarts] => 0
            [manual_restarts] => 0
            [misses] => 1
            [blacklist_misses] => 0
            [blacklist_miss_ratio] => 0
            [opcache_hit_rate] => 0
        )

    [scripts] => Array
        (
            [/tmp/test.php] => Array
                (
                    [full_path] => /tmp/test.php
                    [hits] => 0
                    [memory_consumption] => 520
                    [last_used] => Fri May 15 22:44:46 2015
                    [last_used_timestamp] => 1431729886
                    [timestamp] => 1431728600
                )

        )

)

jp-bennett added a commit to jp-bennett/packages that referenced this issue May 17, 2015

php5: add php5-mod-opcache (fixes openwrt#1010)
This patch adds build infrastructure for PHP's OPcache extension.
Compared with the other extension, this is a Zend module and it
need a little workaround during cross-compiling.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

flyn-org added a commit to flyn-org/packages that referenced this issue Dec 23, 2015

php5: add php5-mod-opcache (fixes openwrt#1010)
This patch adds build infrastructure for PHP's OPcache extension.
Compared with the other extension, this is a Zend module and it
need a little workaround during cross-compiling.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.