How to check PHP compatability?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I have some php files that form an application, and are running on
Apache with PHP4.

Before I migrate to PHP5 is there a way I can process the php files
and check for any issues they might have?

I have already migrated them to a test PHP5 environment, and they seem
fine, but it would be great if there is a tool to run through them and

Is there a way of automatically checking for php references that are
invalid in PHP5?

Thanks for any pointers


Re: How to check PHP compatability?

On Sat, 12 Sep 2009 00:43:39 +0100, zeebop wrote:
Quoted text here. Click to load it

There are very, very few things that work in PHP 4 that do not work in
PHP 5. Almost all of the very, very few things are esoteric options that
almost nobody seemed to use anyway. The vast majority of changes are new
functions, new suites of functions, and occasional enhancements to
existing functions that are generally enhanced by adding new optional
parameters onto the end end of the list of already optional ones.

The list of incompatible changes is at

If you wrote the programs, anything in there that sounds familiar will
probably need to be checked. Most stuff won't.

"This system operates under martial law. The constitution is suspended. You
 have no rights except as declared by the area commander. Violators will be
 shot. Repeat violators will be repeatedly shot...."        -from "A_W_O_L"

Re: How to check PHP compatability?

On Fri, 11 Sep 2009 19:19:52 -0500, "Peter H. Coffin"

Quoted text here. Click to load it

Thanks very much for the link.
Very useful.

Re: How to check PHP compatability?

zeebop wrote:
Quoted text here. Click to load it

Please learn how to cross-post instead of multi-posting!

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline