php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #59608 shm_size in INSTALL readme file should have "M" suffix
Submitted: 2011-02-07 04:22 UTC Modified: 2012-02-21 20:03 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: FractalizeR at yandex dot ru Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.3.5 OS: CentOS 5.5
Private report: No CVE-ID: None
 [2011-02-07 04:22 UTC] FractalizeR at yandex dot ru
Description:
------------
If the following example is used in APC.ini

Suggested Configuration (in your php.ini file)
----------------------------------------------
  extension=apc.so
  apc.enabled=1
  apc.shm_size=128
  apc.ttl=7200
  apc.user_ttl=7200
  apc.enable_cli=1


You will have a warning on each PHP startup:

Starting php-fpm PHP Warning:  PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0
. done

You need to change 
  apc.shm_size=128

to

  apc.shm_size=128M

to avoid it.

Reproduce code:
---------------
  extension=apc.so
  apc.enabled=1
  apc.shm_size=128
  apc.ttl=7200
  apc.user_ttl=7200
  apc.enable_cli=1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-21 20:03 UTC] rasmus@php.net
This was fixed a while ago.
 [2012-02-21 20:03 UTC] rasmus@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rasmus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 12:01:33 2024 UTC