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.schult...@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.ros...@gmail.com> wrote:
From: Ovidiu Rosoiu <ovidiu.ros...@gmail.com>
Subject: Re: [PHP] "use strict" or similar in PHP?
To: "Hans Schultz" <h.schult...@yahoo.com>
Cc: php-general@lists.php.net
Date: Thursday, February 26, 2009, 9:14 PM

Hans Schultz wrote:
Hello,
I am beginner with PHP and prior to PHP I have worked with java for some
time
and with perl for very short period. I can't help to notice some
things that
are little annoyance for me with PHP, but I am sure someone more
experienced
can help me :-)
Is there in PHP something like "use strict" from perl? I find it
pretty
annoying 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 some
frequently
used data from database?
Also regarding databases, I liked a lot java's way of sending data to
database
using parameters ("select * from user where username = ?" and
then passing
parameter separately with database doing necessary escaping and
everything).
Is there something like PHPDBC similar to JDBC?







--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to