[ciapug] php 5

Carl Olsen carl-olsen at mchsi.com
Fri Mar 16 09:43:30 CDT 2007


I've been using E_STRICT for just about as long as I've been using PHP.  I
agree.  Why wait until you are forced to check this stuff?

Carl

-----Original Message-----
From: ciapug-bounces at cialug.org [mailto:ciapug-bounces at cialug.org] On Behalf
Of Tony Bibbs
Sent: Friday, March 16, 2007 9:37 AM
To: ciapug at cialug.org
Subject: Re: [ciapug] php 5

Again, as long as you aren't using the expanded OO features that may be 
true.

Oh, and with PHP6 in the works you might as well start playing with PHP5 
with E_STRICT on which will be the default in PHP6.  You'd be surprised 
how many notices that will generated with code not written for PHP5.x 
and up.

--Tony

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
_______________________________________________
ciapug mailing list
ciapug at cialug.org
http://cialug.org/mailman/listinfo/ciapug



More information about the ciapug mailing list