Re: [PHP-DEV] Upgrading php

2005-11-20 Thread Steph Fox
t; To: "Steph Fox" <[EMAIL PROTECTED]> Cc: "Andi Gutmans" <[EMAIL PROTECTED]>; "Jani Taskinen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; Sent: Sunday, November 20, 2005 4:34 AM Subject: Re: [PHP-DEV] Upgrading php > Im aware of that, but my

Re: [PHP-DEV] Upgrading php

2005-11-19 Thread Eric Coleman
EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; 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.c

Re: [PHP-DEV] Upgrading php

2005-11-19 Thread Steph Fox
t;Jani Taskinen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; 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... > &g

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 good

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

Re: [PHP-DEV] Upgrading php

2005-11-18 Thread Jani Taskinen
x27;m going to slip that into the upgrade notes - I wasn't aware you could do this 'til now either! - Original Message - From: "Jani Taskinen" <[EMAIL PROTECTED]> To: "Andi Gutmans" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; Sent: Friday, Novem

Re: [PHP-DEV] Upgrading php

2005-11-18 Thread Jani Taskinen
TED]> Cc: <[EMAIL PROTECTED]>; 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 perspectiv

Re: [PHP-DEV] Upgrading php

2005-11-18 Thread Steph Fox
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 scan

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 E_STRICT/E_N

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 I

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 emi

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

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 volunte

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