[php-src] Issue #8084: Calling mysqli_stmt constructor leaks memory

From: Date: Thu, 17 Feb 2022 12:40:11 +0000
Subject: [php-src] Issue #8084: Calling mysqli_stmt constructor leaks memory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239843@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8084 Comment Author: cmb69 At least one problem is that mysqli_stmt::__construct() allocates memory for the underlying structures, instead of allocation that memory in mysqli_objects_new(). So when the constructor is called manually, that memory leaks. I presume that other mysqli objects have the same issue. Given that calling the constructor manually is pretty uncommon, it might not be worth fixing this for any of the stable versions, but rather to target "master".

« previous php.bugs (#239843) next »