Bug #78986 [Fbk->Opn]: Memory Leak
| From: | j124519951 at gmail dot com | Date: | Wed, 18 Dec 2019 05:11:59 +0000 |
| Subject: | Bug #78986 [Fbk->Opn]: Memory Leak | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224378@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78986&edit=1
ID: 78986
User updated by: j124519951 at gmail dot com
Reported by: j124519951 at gmail dot com
Summary: Memory Leak
-Status: Feedback
+Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Linux
PHP Version: 7.4.0
Block user comment: N
Private report: N
New Comment:
This is no issue if I disable opcache.
I use docker to build the test environment, not install any extensions except opcache.
# Docker file begin
FROM php:7.4-fpm-alpine
RUN docker-php-ext-install opcache
# Docker file end
# make sure enable opcache in php.ini
Test script same as what I send before.
Previous Comments:
------------------------------------------------------------------------
[2019-12-18 04:28:30] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Seems fine. https://3v4l.org/LhvkT
Do you have any Zend extensions activated? Is there any difference if you enable or disable opcache?
------------------------------------------------------------------------
[2019-12-18 04:06:08] j124519951 at gmail dot com
Description:
------------
When I run the test script in PHP 7.4.0, 100% run out of memory.
Test script:
---------------
<?php
define('TEST_TEST', 1);
class TestClass2
{
function __construct() {}
}
class TestClass extends TestClass2
{
var $test = [
TEST_TEST => 'test'
];
}
new TestClass();
Actual result:
--------------
Out of memory
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78986&edit=1