PHP 4.0 Bug #7992: Non-Quoted Strings = bad idea
| From: | walhu at xpoint dot at | Date: | Mon, 27 Nov 2000 14:04:47 +0000 |
| Subject: | PHP 4.0 Bug #7992: Non-Quoted Strings = bad idea | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39265@lists.php.net to get a copy of this message | ||
From: walhu@xpoint.at
Operating system: Linux/Windows
PHP version: 4.0.2
PHP Bug Type: Feature/Change Request
Bug description: Non-Quoted Strings = bad idea
this codesnippet:
==========
$periodCount=3;
$sum = 2*periodCount; // missing $ at periodCount
echo "sum $sum";
==========
gives: "sum 0" as result
I expect to get a parse error because of the unknown identifier.
This kind of typo can be #very# hard to find.
Please remove/(make as option) these non-quoted strings.
Is there a feature (planned) to force the detection of non declared variables?
--
Edit Bug report at: http://bugs.php.net/?id=7992&edit=1