Bug #72236 [Opn->Fbk]: including script with "${}" crashes the engine
Edit report at https://bugs.php.net/bug.php?id=72236&edit=1
ID: 72236
Updated by: cmb@php.net
Reported by: jeorme dot colardelle at gmail dot com
-Summary: Reproductible crash
+Summary: including script with "${}" crashes the engine
-Status: Open
+Status: Feedback
Type: Bug
Package: Reproducible crash
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
> I can not reproduce this
Me neither. Both PHP 5.6.18 and PHP 7.0.6 (on Windows) report a
parse error.
To the OP: please mention the exact PHP version and the OS on
which this behavior occurred. Also double-check that
error_reporting & friends are appropriately configured.
Previous Comments:
------------------------------------------------------------------------
[2016-05-18 09:43:55] laruence@php.net
I can not reproduce this
------------------------------------------------------------------------
[2016-05-18 08:17:00] jeorme dot colardelle at gmail dot com
Description:
------------
If you try to include a file that contains "${}" (empty variable in a double quote d
string), php crash on the include instruction, no log is generated.
I'd expect a parse error pointing the faulty code.
Test script:
---------------
fileA :
include "fileB.php";
-------------------------
fileB :
$test = "test ${}";
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72236&edit=1
Thread (4 messages)