Bug #72206 [Opn->Csd]: xml_parser_create/xml_parser_free leaks mem

From: Date: Sat, 14 May 2016 07:11:27 +0000
Subject: Bug #72206 [Opn->Csd]: xml_parser_create/xml_parser_free leaks mem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201087@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72206&edit=1 ID: 72206 Updated by: krakjoe@php.net Reported by: otto at drijf dot net Summary: xml_parser_create/xml_parser_free leaks mem -Status: Open +Status: Closed Type: Bug Package: *XML functions Operating System: OpenBSD PHP Version: 7.0.6 Block user comment: N Private report: N New Comment: Automatic comment on behalf of krakjoe Revision: http://git.php.net/?p=php-src.git;a=commit;h=4a42fbbbc73aad7427aef5c89974d1833636e082 Log: fix #72206 (xml_parser_create/xml_parser_free leaks mem) Previous Comments: ------------------------------------------------------------------------ [2016-05-12 08:30:19] otto at drijf dot net Description: ------------ The memory usage of the script below goes through the roof. Does not happen on php 5.6.18 Test script: --------------- <?php for ($i = 0; $i < 10000000; $i++) { $parser = xml_parser_create(); $ok = xml_parser_free($parser); if (!$ok) { echo 'NOT OK'; } } ?> Expected result: ---------------- Empty output. Actual result: -------------- Out of memory error. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72206&edit=1

« previous php.bugs (#201087) next »