#10184 [Com]: Define and empty multi line string fault
| From: | ass-thong1521 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:00:00 +0000 |
| Subject: | #10184 [Com]: Define and empty multi line string fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62764@lists.php.net to get a copy of this message | ||
ID: 10184
Comment by: ass-thong1521 at hotmail dot com
Reported By: phil dot whittaker at phoenixtelecom dot co dot uk
Status: Bogus
Bug Type: Strings related
Operating System: Linux 6.x/Apache
PHP Version: 4.0.2
New Comment:
<a href=http://s-medicalobjectssho.da.ru>ass
thong</a>
Previous Comments:
------------------------------------------------------------------------
[2001-05-28 00:42:46] sniper@php.net
http://www.php.net/manual/en/function.define.php
------------------------------------------------------------------------
[2001-04-05 10:16:52] 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?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=10184&edit=1