[ciapug] php 5
Dave J. Hala Jr.
dave at 58ghz.net
Fri Mar 16 09:37:35 CDT 2007
I'm glad the hear that it is not going to be super painful.
On Fri, 2007-03-16 at 09:28, Carl Olsen wrote:
> http://www.devshed.com/cp/bio/Alejandro-Gervasio/
>
> You can do just about anything with PHP 4.3 you can do with PHP 5.1, but you
> have to write more code with PHP 4. I think PHP 5.2 is available, but I
> think I'm still using PHP 5.1.
>
> The syntax is not a whole lot different.
>
> You did not mention OOP, but the major difference between versions 4 and 5
> is how objects are passed to functions. In version 4 they are passed by
> value and you have to use the "&" operator to tell PHP to pass them by
> reference. In version 5 the default behavior is to pass objects by
> reference (which is how Java and C# do it).
>
> I regularly convert PHP 4 code to PHP 5 and PHP 5 code to PHP 4. I think
> upgrading from PHP 4 to PHP 5 and converting code back and forth is fairly
> easy.
>
> Carl
>
> -----Original Message-----
> From: ciapug-bounces at cialug.org [mailto:ciapug-bounces at cialug.org] On Behalf
> Of Dave J. Hala Jr.
> Sent: Friday, March 16, 2007 9:06 AM
> To: PHP List
> Subject: [ciapug] php 5
>
> So... I just got a new workstation setup and running rhel 5. I'm
> getting ready to port/partially rewrite a php 4.3x application to php 5.
>
> I'm wondering... have any of you rewrote an existing procedural
> application in php 5 and then did something crazy like try and run it on
> php 4.3x (The redhat php version numbers are slightly differant then
> those from the php folks)
>
> I really don't need any new functionality, but it is, at the very least
> time to move to php 5.
>
> Any thoughts?
>
>
> :) Dave
--
More information about the ciapug
mailing list