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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC