PHP 4.0 Bug #10184 Updated: Define and empty multi line string fault
| From: | phil dot whittaker at phoenixtelecom dot co dot uk | Date: | Thu, 05 Apr 2001 14:18:17 +0000 |
| Subject: | PHP 4.0 Bug #10184 Updated: Define and empty multi line string fault | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50936@lists.php.net to get a copy of this message | ||
ID: 10184
User Update by: phil.whittaker@phoenixtelecom.co.uk
Status: Open
Bug Type: Strings related
Description: Define and empty multi line string fault
Previous Comments:
---------------------------------------------------------------------------
[2001-04-05 10:16:52] phil.whittaker@phoenixtelecom.co.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?
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10184