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

From: Date: Thu, 05 Oct 2017 10:53:10 +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-211524@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: nikic@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: I've run this through valgrind in a number of variations (with/without zmm, with/without opcache) and did not get any memory errors. Previous Comments: ------------------------------------------------------------------------ [2017-10-05 01:29:35] marina at moodle dot com Thanks for reply. I use Ubuntu 14.04.5 LTS ------------------------------------------------------------------------ [2017-10-04 21:49:18] gmblar+php at gmail dot com Cannot reproduce this bug on macOS 10.13 or with the docker image php:7.2.0RC3-cli. Which version of ubuntu do you use? ------------------------------------------------------------------------ [2017-09-29 06:59:28] marina at moodle dot com sorry made a mistype, read "PHP7.2RC3" (typed 7.3 instead, living in the future) ------------------------------------------------------------------------ [2017-09-29 06:56:20] marina at moodle dot com Description: ------------ Test script works fine in PHP7.0 and 7.1 but not on 7.3RC3 $ php -v PHP 7.2.0RC3 (cli) (built: Sep 28 2017 16:47:01) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.2.0-dev, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.2.0RC3, Copyright (c) 1999-2017, by Zend Technologies $ php -r "echo xmlrpc_encode_request('func', 'text', []);" zend_mm_heap corrupted Test script: --------------- echo xmlrpc_encode_request('func', 'text', []); Expected result: ---------------- <?xml version="1.0" encoding="iso-8859-1"?> <methodCall> <methodName>func</methodName> <params> <param> <value> <string>text</string> </value> </param> </params> </methodCall> Actual result: -------------- zend_mm_heap corrupted ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75282&edit=1

« previous php.bugs (#211524) next »