|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
40 - 24 = ?
Subscribe to this entry?

 [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: Tue Mar 28 14:03:38 2023 UTC