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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC