Bug #75295 [Opn]: include read data outside parentheses

From: Date: Sat, 30 Sep 2017 17:44:30 +0000
Subject: Bug #75295 [Opn]: include read data outside parentheses
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211478@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75295&edit=1 ID: 75295 User updated by: brilicru at yandex dot ru Reported by: brilicru at yandex dot ru Summary: include read data outside parentheses Status: Open Type: Bug -Package: inclued +Package: *General Issues Operating System: Windows 10 x64, Ubuntu x64 PHP Version: 7.1.10 Block user comment: N Private report: N New Comment: incorrect package. Previous Comments: ------------------------------------------------------------------------ [2017-09-30 15:52:15] brilicru at yandex dot ru Description: ------------ A strange work include, which does not stop reading data even outside parentheses. Test script: --------------- <?php $filename = './include.php'; file_exists($filename) or file_put_contents($filename, $filename); var_dump(include($filename).''); //correct var_dump(include($filename).' ololo'); //warning Expected result: ---------------- include.phpint(1) include.phpint(1) ololo Actual result: -------------- include.phpint(1) PHP Warning: include(./include.php ololo): failed to open stream: No such file or directory in D:\script.php on line 5 Warning: include(./include.php ololo): failed to open stream: No such file or directory in D:\script.php on line 5 PHP Warning: include(): Failed opening './include.php ololo' for inclusion (include_path='.') in D:\script.php on line 5 Warning: include(): Failed opening './include.php ololo' for inclusion (include_path='.') in D:\script.php on line 5 bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75295&edit=1

« previous php.bugs (#211478) next »