Bug #78297 [Com]: Include unexistent file memory leak
Edit report at https://bugs.php.net/bug.php?id=78297&edit=1
ID: 78297
Comment by: a at ustimen dot co
Reported by: a at ustimen dot co
Summary: Include unexistent file memory leak
Status: Closed
Type: Bug
Package: phpdbg
Operating System: Linux
PHP Version: 7.2.20
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
ð
When will 7.2.21 be released? I can't find anywhere any plans.
Previous Comments:
------------------------------------------------------------------------
[2019-07-16 09:11:19] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8a19fe29de77d7477d59db472dd6aadabd5ac249
Log: Fixed bug #78297
------------------------------------------------------------------------
[2019-07-16 09:10:23] a at ustimen dot co
By bisecting I found breaking commit:
https://github.com/php/php-src/commit/a3e6b50442db106d354931ecaa0284a200609be6
------------------------------------------------------------------------
[2019-07-16 07:15:42] a at ustimen dot co
Description:
------------
Under phpdbg 7.2.20 include unexistent file results to fatal error/memory exhausted.
Under phpdbg 7.2.19 include unexistent file works as expected.
Test script:
---------------
echo '<?php include "unexistent";' | docker run -i php:7.2.20 phpdbg -qrr -s
''
[PHP Warning: include(unexistent): failed to open stream: No such file or directory in Standard
input code on line 1]
[PHP Warning: include(): Failed opening 'unexistent' for inclusion
(include_path='.:/usr/local/lib/php') in Standard input code on line 1]
[PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate
2305843009750564865 bytes) in Standard input code on line 1]
echo '<?php include "unexistent";' | docker run -i php:7.2.19 phpdbg -qrr -s
''
[PHP Warning: include(unexistent): failed to open stream: No such file or directory in Standard
input code on line 1]
[PHP Warning: include(): Failed opening 'unexistent' for inclusion
(include_path='.:/usr/local/lib/php') in Standard input code on line 1]
Expected result:
----------------
Just two warnings.
Actual result:
--------------
Two warnings and fatal about memory.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78297&edit=1
Thread (4 messages)