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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 16:01:28 2024 UTC