php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77900 Memcache session handling, zend_mm_heap corrupted
Submitted: 2019-04-15 14:35 UTC Modified: -
Votes:5
Avg. Score:4.4 ± 0.5
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:1 (20.0%)
From: bb0072 at gmail dot com Assigned:
Status: Open Package: memcache (PECL)
PHP Version: 7.3.4 OS: Ubuntu 18.04.2 LTS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bb0072 at gmail dot com
New email:
PHP Version: OS:

 

 [2019-04-15 14:35 UTC] bb0072 at gmail dot com
Description:
------------
When I try to use sessions in my script (php 7.3) with session.save_handler=memcache, I get the following error message: zend_mm_heap corrupted.
Same script on same server does work with php 5.6.

I use the php-memcache extension (not php-memcached!)

Software versions (the most recent stable versions from the Ubuntu 18.04 repo, and php versions from here: http://ppa.launchpad.net/ondrej/php/ubuntu bionic main):

 * php7.3-cli (7.3.3-1+ubuntu18.04.1+deb.sury.org+1)
 * php-memcache (3.0.9~20170802.e702b5f-1+ubuntu18.04.1+deb.sury.org+10)
 * memcached (1.5.6-0ubuntu1 )

Memcache.ini settings (/etc/php/7.3/mods-available/memcache.ini)
extension=memcache.so
[memcache]
memcache.allow_failover="1"
memcache.max_failover_attempts="20"
memcache.chunk_size="8192"
memcache.default_port="11211"
memcache.redundancy=1
memcache.session_redundancy=2
memcache.compress_threshold=20000




Test script:
---------------
<?php
ini_set('session.save_handler', 'memcache');
ini_set('session.save_path', 'tcp://localhost:11211');
session_start();
$_SESSION['test']=true;
session_write_close();
session_start();
var_dump($_SESSION);
session_write_close();


Expected result:
----------------
array(1) {
  ["test"]=>
  bool(true)
}

Actual result:
--------------
zend_mm_heap corrupted

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 09:01:23 2019 UTC