Bug #18430: abnormal syntax still runs

From: Date: Fri, 19 Jul 2002 08:35:42 +0000
Subject: Bug #18430: abnormal syntax still runs
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14602@lists.php.net to get a copy of this message
From: fuser@abv.bg Operating system: Linux 2.4.19 PHP version: 4.2.0 PHP Bug Type: Feature/Change Request Bug description: abnormal syntax still runs Actually I'm not reporting a bug of the PHP. I am reporing bug of myself. With few words I am a buggy programmer. For example i write for ($i = 0; i < $k; $i ++), and you know what happens when 'i' is not defined. So i have a proposition that somebody from the PHP Group write a parser that is little strictier about such things. A parser not part of the PHP engine but mostly a debug tool.For example if such thing exist you do the following: 1. mark a part of your code to be checked with a given tag, for example <CHECK> ....... .......... code .......... .......................... </CHECK> 2. this tool have some strictlier requirments towards your code for example to define each variable with 'var' thus checking for not defined variables, to mark somehow external variables that can be let in (oops they had to be globals).Type checking and definition according to me is useless and not really possible at this point of time. 3. Things like that. This idea is due to my first immpression so a suppose there may be other such things. If such tool exist PLEASE TELL ME. If such tool doesn't exist and u the reader find this interesting to any extent PLEASE TELL ME. I sincerely appologise that I used your time for not what it was meant to be used. I hope u understand how silly is to write "for ($i = 0; i < 8; $i ++)" Faithfully yours, fuser -- Edit bug report at http://bugs.php.net/?id=18430&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18430&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18430&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18430&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18430&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18430&r=support Expected behavior: http://bugs.php.net/fix.php?id=18430&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18430&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18430&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18430&r=globals

« previous php.bugs (#14602) next »