Re: [PHP-DEV] Upgrading php

2005-11-20 Thread Steph Fox
Gutmans [EMAIL PROTECTED]; Jani Taskinen [EMAIL PROTECTED]; [EMAIL PROTECTED]; internals@lists.php.net Sent: Sunday, November 20, 2005 4:34 AM Subject: Re: [PHP-DEV] Upgrading php Im aware of that, but my thinking was to add the things in for that Maybe Davey will be willing, or I could give

Re: [PHP-DEV] Upgrading php

2005-11-19 Thread Eric Coleman
What about using http://pear.php.net/package/PHP_CompatInfo as a basis? It seemed to do a pretty good job last time I ran it... - Eric -- Eric Coleman http://aplosmedia.com home: 412 399 1024 cell: 412 779 5176 On Nov 18, 2005, at 2:33 PM, Andi Gutmans wrote: Yep that's definitely a

Re: [PHP-DEV] Upgrading php

2005-11-19 Thread Steph Fox
]; internals@lists.php.net Sent: Sunday, November 20, 2005 3:24 AM Subject: Re: [PHP-DEV] Upgrading php What about using http://pear.php.net/package/PHP_CompatInfo as a basis? It seemed to do a pretty good job last time I ran it... - Eric -- Eric Coleman http://aplosmedia.com home: 412 399

Re: [PHP-DEV] Upgrading php

2005-11-19 Thread Eric Coleman
: Sunday, November 20, 2005 3:24 AM Subject: Re: [PHP-DEV] Upgrading php What about using http://pear.php.net/package/PHP_CompatInfo as a basis? It seemed to do a pretty good job last time I ran it... - Eric -- Eric Coleman http://aplosmedia.com home: 412 399 1024 cell: 412 779 5176 On Nov 18

Re: [PHP-DEV] Upgrading php

2005-11-18 Thread Jani Taskinen
On Thu, 17 Nov 2005, Andi Gutmans wrote: I'm hoping that in future we can provide better tools for upgrading in between versions. Both from an auto-conversion perspective and just scanning the code statically and printing out warnings on what code to check. Coupled with better upgrading docs

Re: [PHP-DEV] Upgrading php

2005-11-18 Thread Lukas Smith
Ilia Alshanetsky wrote: Todd Ruth wrote: The hope in my original email is that if php is clever enough to give me a message, it might be clever enough to just make the change too. A scripting language is not a spell checker, you can forget about it auto-correcting your code. The

Re: [PHP-DEV] Upgrading php

2005-11-18 Thread Steph Fox
Subject: Re: [PHP-DEV] Upgrading php On Thu, 17 Nov 2005, Andi Gutmans wrote: I'm hoping that in future we can provide better tools for upgrading in between versions. Both from an auto-conversion perspective and just scanning the code statically and printing out warnings on what code to check

Re: [PHP-DEV] Upgrading php

2005-11-18 Thread Jani Taskinen
Sent: Friday, November 18, 2005 8:06 AM Subject: Re: [PHP-DEV] Upgrading php On Thu, 17 Nov 2005, Andi Gutmans wrote: I'm hoping that in future we can provide better tools for upgrading in between versions. Both from an auto-conversion perspective and just scanning the code statically

Re: [PHP-DEV] Upgrading php

2005-11-18 Thread Jani Taskinen
-DEV] Upgrading php On Thu, 17 Nov 2005, Andi Gutmans wrote: I'm hoping that in future we can provide better tools for upgrading in between versions. Both from an auto-conversion perspective and just scanning the code statically and printing out warnings on what code to check. Coupled

Re: [PHP-DEV] Upgrading php

2005-11-18 Thread Andi Gutmans
Yep that's definitely a good start. The two things we might want to improve on are: a) Not require PHP 5 in order to detect these issues when PHP 6 comes a long. b) Have a script that automatically makes the changes that can be done without human intervention. We had something similar to (a)

[PHP-DEV] Upgrading php

2005-11-17 Thread Todd Ruth
I'd been ignoring the curly braces thread, but then I grepped my code and ... sure enough, I have curly braces that are used to index into strings. I don't care about this philosophically, but it makes me wonder about upgrade tools. I know I shouldn't ask this without volunteering to do it

Re: [PHP-DEV] Upgrading php

2005-11-17 Thread Rasmus Lerdorf
Todd Ruth wrote: I'd been ignoring the curly braces thread, but then I grepped my code and ... sure enough, I have curly braces that are used to index into strings. I don't care about this philosophically, but it makes me wonder about upgrade tools. I know I shouldn't ask this without

Re: [PHP-DEV] Upgrading php

2005-11-17 Thread Andi Gutmans
Hi Todd, I'm hoping that in future we can provide better tools for upgrading in between versions. Both from an auto-conversion perspective and just scanning the code statically and printing out warnings on what code to check. Coupled with better upgrading docs I think we'd improve the

Re: [PHP-DEV] Upgrading php

2005-11-17 Thread Todd Ruth
On Thu, 2005-11-17 at 16:47 -0800, Rasmus Lerdorf wrote: Todd Ruth wrote: ... It would be so wonderful to throw all my code at a tool that would change everything that can be easily changed and give me a list of spots I need to look at manually. A lot of the changes don't take an

Re: [PHP-DEV] Upgrading php

2005-11-17 Thread Ilia Alshanetsky
Todd Ruth wrote: The hope in my original email is that if php is clever enough to give me a message, it might be clever enough to just make the change too. A scripting language is not a spell checker, you can forget about it auto-correcting your code. The E_STRICT/E_NOTICE messages are