Jump to content

PHP 4 Deprecated terms in PHP 5


MacNala

Recommended Posts

I have had a problem moving a complex website from one host to another because the new host does not support PHP4 terms such as 'split'.

I have overcome the problems that caused but want to be sure I am not going to encounter other now deprecated terms.

 

Is there a method of checking a series of PHP scripts against the latest or selectable PHP version for deprecated terms to future proof my scripts?

 

Obviously I could run all the scripts against PHP5 but this is wasteful of time identifying what terms cause a failure.

Link to comment
Share on other sites

Thanks for reminding me of the insufficient help that is provided.

What I was looking for was an application that would read through the php scripts and highlight the deprecated features.

I have found a few references to such applications they all point to pay software and one that looked promising turned out to be full of what I consider gobble de gook, quoting how to install in Linux or using Chrome.

Not for me.

 

What I think I need is a php script which reads all the scripts and highlights the deprecated terms. Not a reference to a manual page which lists them for a specific version.

 

 

see .../migration53.deprecated.php

and .../migration54.deprecated.php

and .../migration55.deprecated.php

 

which quite correctly identify the terms but offer no consolidated help.

 

 

Link to comment
Share on other sites

Link to comment
Share on other sites

Thanks for the info.

Reading the Blog it suggests the first of the ones I listed on my previous post.

But I have a problem with what was suggested the execution of the download and install is greek to me.

 

It talks about GIT whatever that is and then launches into execution by

 

phpcs --standard=PHP3Compatibility <path-to-your-PHP-source-directory>

Which is what turned me off - so I am still looking.

Link to comment
Share on other sites

I highly doubt that you are going to find an open source tool to do what you're looking for that has a graphical interface. If you want something that is free, then it's going to be a console tool. So, you can either pay for the other tools you found, or go to GitHub, download the file, extract the contents, and follow the instructions. It would be nice if everything we wanted was always available for free, but that's just not the reality. If someone puts a ton of work into a particular tool then they are probably going to want you to pay them for it. The open source stuff isn't all that complicated and might not test for everything, but it's free.

Link to comment
Share on other sites

@thescientist I like the link you quoted and I am trying it out. CLI takes me back a long way DOS3, earlier there was nothing else. I am perhaps too long in the tooth to use CLI nowadays.

@justsomeguy I accept the constraint, I take what is provided free and if it becomes indispensable might pay for upgrades but testing it out without a trial period NO WAY.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...