Bug #75282 [Com]: xmlrpc_encode_request() crashes with "zend_mm_heap corrupted"

From: Date: Wed, 25 Oct 2017 06:53:07 +0000
Subject: Bug #75282 [Com]: xmlrpc_encode_request() crashes with "zend_mm_heap corrupted"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212310@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75282&edit=1 ID: 75282 Comment by: remi@php.net Reported by: marina at moodle dot com Summary: xmlrpc_encode_request() crashes with "zend_mm_heap corrupted" Status: Open Type: Bug Package: XMLRPC-EPI related Operating System: Ubuntu PHP Version: 7.2.0RC3 Block user comment: N Private report: N New Comment: Obviously a HAVE_LIBXMLRPC is missing (config.m4), and should be used to select to proper free / efree method for data allocated by the lib. Previous Comments: ------------------------------------------------------------------------ [2017-10-25 00:54:24] marina at moodle dot com Thanks Ondrej, everything works for me now as I commented also on https://github.com/oerdnj/deb.sury.org/issues/724 Nikic, we are gradually moving away from xmlrpc in Moodle but there is still some functionality that depends on it, unfortunately. ------------------------------------------------------------------------ [2017-10-24 18:53:50] ondrej@php.net Maybe don't revert is as whole, but just wrap the free vs efree in ext/xmlrpc/xmlrpc-epi-php.c into #if XMLRPC_MODULE_TYPE == builtin/external ? ------------------------------------------------------------------------ [2017-10-24 18:48:55] ondrej@php.net Thanks, that's considerate. I know it isn't easy with the distro packagers :). ------------------------------------------------------------------------ [2017-10-24 18:18:59] nikic@php.net Right, https://github.com/php/php-src/commit/3a0872d08fc71d9bb9ec3d431260f838725d3b8d needs to be reverted. I had assumed libxmlrpc is abandonware, but seemingly it isn't. ------------------------------------------------------------------------ [2017-10-24 17:20:36] ondrej@php.net Debian and Ubuntu (and I guess Fedora, but I have just asked @remi) doesn't use embedded libraries. So the xmlrpc.so definitely use the non-patched system library. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=75282 -- Edit this bug report at https://bugs.php.net/bug.php?id=75282&edit=1

« previous php.bugs (#212310) next »