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 #179127 is a reply to message #179124] Fri, 14 September 2012 00:13 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/13/2012 4:20 PM, Thomas 'PointedEars' Lahn wrote:
> 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.)
>

And how do you write PHP code to do the search/replace in Eclipse?

> 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.)
>

Yes, once again you suggest a blind search and replace.

> 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
>

Sure, it *can* work for the trinket code you write. But if you ever
wrote any serious code, you'd understand just how dangerous it could be.

However, we all know that is well beyond your capabilities.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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 18:37:19 GMT 2024

Total time taken to generate the page: 0.04258 seconds