php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10184 Define and empty multi line string fault
Submitted: 2001-04-05 10:16 UTC Modified: 2001-05-28 00:42 UTC
From: phil dot whittaker at phoenixtelecom dot co dot uk Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.0.2 OS: Linux 6.x/Apache
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phil dot whittaker at phoenixtelecom dot co dot uk
New email:
PHP Version: OS:

 

 [2001-04-05 10:16 UTC] phil dot whittaker at phoenixtelecom dot co dot uk
CODE USED-
$var = <<<EOF
EOF;

define("CONSTANT", $var) ;

ERROR PRODUCED -
Warning: Constants may only evaluate to scalar values in /home/sites/site5/cnf/lib2.cnf on line 26

The empty multi-line string does not evaluate to the same thing as:
$var = "";

Bug? Fault? User just being thick?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Nov 17 18:01:33 2019 UTC