Home > Archive > PHP Pear > June 2005 > Re: [PEAR] DB_DataObject question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] DB_DataObject question
|
|
| Justin Patrin 2005-06-08, 8:57 pm |
| On 6/8/05, Joe Stump <joe@joestump.net> wrote:
> Simple rant ...
>=20
> Would it be too much to ask for PHP developers to alias public/
> private/static/const/etc. to "var" in a PHP4 release? How about
> ignoring said keywords before "function" too? Too much to ask? I'd
> think aliasing "private" to "var" in a PHP4 version wouldn't be THAT
> big of a deal.
This is an interesting idea, but the problem is that there would then
be syntax in PHP4 which means absolutely nothing. This simply wouldn't
make sense to have. Not only that, PHP5 is already out so this would
only really make it so that some PHP5 code could run on PHP4, but who
knows if it would work right. This would be a very bad idea, IMHO.
[color=darkred]
>=20
> Of course, then you have people reading code running on PHP4 that
> looks like PHP5 code, but doesn't behave as such, but MAN would that
> make my life a buttload easier as I migrate about 50,000 lines of
> code from PHP4 -> PHP5.
>=20
> --Joe
>=20
>=20
> On Jun 8, 2005, at 1:48 PM, Justin Patrin wrote:
>=20
--=20
Justin Patrin
| |
| Joe Stump 2005-06-08, 8:57 pm |
| It's a bad idea in your opinion, but in my opinion as the sole
programmer who maintains 50,000 lines of PHP4 OOP code (and, yes, all
but a few lines is OOP) not to mention the thousands of lines of PEAR
code I use, this would be great.
I'd just love to see a patch. My site gets about 12 million visits a
month and about 40 million raw requests month so the idea of
migrating my code to PHP5 is quite daunting. I can't simply "upgrade"
because there's, literally, thousands of lines of code that haven't
been touched in years.
It's not a great idea for a wide release, possibly, but I'd probably
PAY someone to make this patch so I could start "porting" my PHP4
code to PHP5 before making a final push to make sure it all works
fine in PHP5.
At least this way all of my code would be PHP5 "ready" and then I
could upgrade my dev and staging servers before moving all my code
onto the live site. I could also continue to push code that looks
like PHP5 into the live site.
Just sayin' - it would make *my* transition easier.
--Joe
On Jun 8, 2005, at 2:16 PM, Justin Patrin wrote:
> On 6/8/05, Joe Stump <joe@joestump.net> wrote:
>
>
> This is an interesting idea, but the problem is that there would then
> be syntax in PHP4 which means absolutely nothing. This simply wouldn't
> make sense to have. Not only that, PHP5 is already out so this would
> only really make it so that some PHP5 code could run on PHP4, but who
> knows if it would work right. This would be a very bad idea, IMHO.
>
>
>
>
> --
> Justin Patrin
>
|
|
|
|
|