PHP 4.0 Bug #10184: Define and empty multi line string fault
| From: | phil dot whittaker at phoenixtelecom dot co dot uk | Date: | Thu, 05 Apr 2001 14:16:52 +0000 |
| Subject: | PHP 4.0 Bug #10184: Define and empty multi line string fault | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50935@lists.php.net to get a copy of this message | ||
From: phil.whittaker@phoenixtelecom.co.uk
Operating system: Linux 6.x
PHP version: 4.0.2
PHP Bug Type: Strings related
Bug description: Define and empty multi line string fault
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 Bug report at: http://bugs.php.net/?id=10184&edit=1