Bug #77173 [Com]: include and new anonymous class bug

From: Date: Mon, 19 Nov 2018 07:52:03 +0000
Subject: Bug #77173 [Com]: include and new anonymous class bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218033@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
 Comment by:         spam2 at rhsoft dot net
 Reported by:        admin at yurunsoft dot com
 Summary:            include and new anonymous class bug
 Status:             Open
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Linux
 PHP Version:        7.1.24
 Block user comment: N
 Private report:     N

 New Comment:

what else do you expect when you include a file in and endless loop?


Previous Comments:
------------------------------------------------------------------------
[2018-11-19 05:46:46] admin at yurunsoft dot com

Description:
------------
when I include a file, the file new a anonymous class and return, more and more memory usage

Test script:
---------------
<?php
class A
{

}

file_put_contents(__DIR__ . '/tmp.php', '<?php return new class extends
A{};');

while(true)
{
	$a = include __DIR__ . '/tmp.php';
	usleep(1000);
}




------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=77173&edit=1


Thread (8 messages)

« previous php.bugs (#218033) next »