[PHP-DEV] PHP 4.0 Bug #10184 Updated: Define and empty multi line string fault From: phil.whittaker <email protected>
Date: 04/05/01

ID: 10184
User Update by: phil.whittaker <email protected>
Status: Open
Bug Type: Strings related
Description: Define and empty multi line string fault

Previous Comments:
---------------------------------------------------------------------------

[2001-04-05 10:16:52] phil.whittaker <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>