|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-19 05:41 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 06:00:02 2025 UTC |
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