Bug #77173 [Opn->Nab]: include and new anonymous class bug
| From: | krakjoe@php.net | Date: | Sat, 22 May 2021 09:15:45 +0000 |
| Subject: | Bug #77173 [Opn->Nab]: include and new anonymous class bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-233966@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77173&edit=1
ID: 77173
Updated by: krakjoe@php.net
Reported by: admin at yurunsoft dot com
Summary: include and new anonymous class bug
-Status: Open
+Status: Not a bug
Type: Bug
Package: Scripting Engine problem
Operating System: Linux
PHP Version: 7.1.24
Block user comment: N
Private report: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2018-11-21 09:49:42] wi1dcard dot cn at gmail dot com
Simpler test case:
while(true)
{
$func = eval('return function () {};');
var_dump($func);
unset($func);
usleep(1000);
}
------------------------------------------------------------------------
[2018-11-20 00:47:48] admin at yurunsoft dot com
my extensions:
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
inotify
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pgsql
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
swoole
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zlib
I use htop to check and find that php's RES is getting higher and higher.
------------------------------------------------------------------------
[2018-11-19 11:37:13] cmb@php.net
I cannot reproduce memory issues with PHP 7.1.24. Is OPcache or
some other bytecode cache involved?
------------------------------------------------------------------------
[2018-11-19 09:54:33] spam2 at rhsoft dot net
which proves that it is a bad idea include code in a loop
------------------------------------------------------------------------
[2018-11-19 08:18:11] admin at yurunsoft dot com
you can try this code, it's ok!
<?php
class A
{
}
while(true)
{
$a = new class extends A{};
usleep(1000);
}
------------------------------------------------------------------------
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=77173
--
Edit this bug report at https://bugs.php.net/bug.php?id=77173&edit=1