FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Never log deprecation warnings
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Never log deprecation warnings [message #179124 is a reply to message #179121] Thu, 13 September 2012 20:20 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Shake wrote:

> Using an IDE you can do both things: some regexp search and replace, or
> some watching and writing to get a few php that do the work (not
> blindly, just after watching).

And I have found Eclipse PHP Development Tools (PDT) to be an excellent tool
for that (optionally recursive, optionally filtered, optionally interactive
optionally regexp, search-and-replace). (As a result, this works with Zend
Studio, which is based on PDT, as well.)

However, it would be interesting, indeed, to find out whether and if, to
what extent, it was reasonably possible to automate the process. (Analysis
and results can be written to stderr and stdout or another file, so that the
original is not necessarily lost.)

When the language changed radically from Python 2.x to 3.x, and programs had
to be made compliant with the new version efficiently, the Python people did
something very similar to what I suggest here (2to3) – and it does work.
Because, if you know your computer science, you know that an algorithm can
be devised, thus a program can be written, that transforms a program written
in one programming language into another, where the result is an approximate
simulation (Turing equivalence). (We all do that in our heads when we are
refactoring or porting code.) It would be nice to have something like that
for PHP versions.


PointedEars
--
Sometimes, what you learn is wrong. If those wrong ideas are close to the
root of the knowledge tree you build on a particular subject, pruning the
bad branches can sometimes cause the whole tree to collapse.
-- Mike Duffy in cljs, <news:Xns9FB6521286DB8invalidcom(at)94(dot)75(dot)214(dot)39>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how format one date
Next Topic: Problem with PHP Driver Authentication
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 15:53:33 GMT 2024

Total time taken to generate the page: 0.04004 seconds