php.net |  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
 [2016-05-18 08:17 UTC] 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 ${}";


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-18 09:43 UTC] laruence@php.net
I can not reproduce this
 [2016-05-18 11:30 UTC] cmb@php.net
-Summary: Reproductible crash +Summary: including script with "${}" crashes the engine -Status: Open +Status: Feedback
 [2016-05-18 11:30 UTC] cmb@php.net
> 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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 11:01:31 2025 UTC