Re: Conclusion of "use strict"...
| From: | Hans Schultz | Date: | Thu, 19 Mar 2009 15:43:25 +0000 |
| Subject: | Re: Conclusion of "use strict"... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290285@lists.php.net to get a copy of this message | ||
If someone is still interested in problem I found litle tool that is pretty close to detecting errors in PHP at compile time (compile time aaaarghhh :P). It is Codenizer (http://www.softwarehood.com/Codenizer/), I am still checking it, if someone uses it it would be nice to share experience :)
On Wed, 04 Mar 2009 11:03:04 +0100, Hans Schultz <h.schultz78@yahoo.com> wrote:
Concluding, and one idea...I think I received satisfying advices on everything but first question (Detection of typos and other simple mistakes). And we were talking also about being able to catch them at compile time, then if php at all has compile time etc. Today one thing crossed my mind -- if there is compiler for php maybe it can catch these errors natively, like java compiler for java? Unfortunatelly there is no recent version available for windows so I can't test it myself (http://www.roadsend.com/home/index.php?pageID=compiler). I am interesting if someone is using it, and if it can detect this simple mistakes (I am using eclipse + php plugin, but I feel there is something wrong in depending on editor to detect programming errors :-) ) Regards to all, --- On Thu, 2/26/09, Ovidiu Rosoiu <ovidiu.rosoiu@gmail.com> wrote: From: Ovidiu Rosoiu <ovidiu.rosoiu@gmail.com> Subject: Re: [PHP] "use strict" or similar in PHP? To: "Hans Schultz" <h.schultz78@yahoo.com> Cc: php-general@lists.php.net Date: Thursday, February 26, 2009, 9:14 PM Hans Schultz wrote:-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/Hello, I am beginner with PHP and prior to PHP I have worked with java for sometimeand with perl for very short period. I can't help to notice somethings thatare little annoyance for me with PHP, but I am sure someone moreexperiencedcan help me :-) Is there in PHP something like "use strict" from perl? I find itprettyannoying to need to run script over and over again just to find out that I made typo in variable name. Is there some way for PHP to cache some data on the page? I like very much PHP's speed but it would be even better to be able to cache somefrequentlyused data from database? Also regarding databases, I liked a lot java's way of sending data todatabaseusing parameters ("select * from user where username = ?" andthen passingparameter separately with database doing necessary escaping andeverything).Is there something like PHPDBC similar to JDBC?