|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72236 including script with "${}" crashes the engine
Submitted: 2016-05-18 08:17 UTC Modified: 2016-05-29 04:22 UTC
From: jeorme dot colardelle at gmail dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: jeorme dot colardelle at gmail dot com
New email:
PHP Version: OS:


 [2016-05-18 08:17 UTC] jeorme dot colardelle at gmail dot com
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 ${}";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-18 09:43 UTC]
I can not reproduce this
 [2016-05-18 11:30 UTC]
-Summary: Reproductible crash +Summary: including script with "${}" crashes the engine -Status: Open +Status: Feedback
 [2016-05-18 11:30 UTC]
> 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.
 [2016-05-29 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Mar 29 06:03:55 2023 UTC