php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74211 pecl-apcu disables mmap when configure is called with --enable-apcu-mmap
Submitted: 2017-03-06 11:21 UTC Modified: 2017-03-06 12:22 UTC
From: f dot niepelt at mittwald dot de Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: Gentoo/openSUSE Tumbleweed
Private report: No CVE-ID: None
 [2017-03-06 11:21 UTC] f dot niepelt at mittwald dot de
Description:
------------
Hello,

package affected should be PECL Apcu which does not seem to exist in the Package affected list.

When calling ./configure --enable-apcu-mmap, the script decides to not use mmap, but when omitting that option it does use mmap.

./configure --help only documents disable-apcu-mmap, so either the documentation is wrong or the implementation because clearly "enable-apcu-mmap" is changing the behaviour in a neither expected nor documented way.

PHP Version: 7.1.2
APCU Version: 5.1.8

Reproduced on Gentoo and openSUSE Tumbleweed.

Greetings
Fabian

Test script:
---------------
#!/bin/bash

wget "https://pecl.php.net/get/apcu-5.1.8.tgz"
tar xzf apcu-5.1.8.tgz
cd apcu-5.1.8/
phpize
./configure --enable-apcu-mmap | grep "checking if APCu will use mmap or shm"

Expected result:
----------------
checking if APCu will use mmap or shm... mmap

Actual result:
--------------
checking if APCu will use mmap or shm... shm

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-06 12:13 UTC] f dot niepelt at mittwald dot de
Also reported upstream on github since it is unclear what is the correct place to report it to: https://github.com/krakjoe/apcu/issues/234
 [2017-03-06 12:22 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2017-03-06 12:22 UTC] requinix@php.net
According to their README they want bugs reported there, so I'll close this one.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 20:00:02 2026 UTC