Deprecated code, or as we call it Decapitated, is a piece of code that is basically discontinued. It is usally supported for a few more versions until it is actually removed. It is usualy a function other other code feature of a programming language, framework or other software package.
Many PHP functions become deprecated over time as PHP changes and evolves. Sometimes this is for the better, and sometimes this just causes problems.
The biggest problem with deprecated code is server upgrades. If you have a website and software running on a server for many years, and suddenly you want to move it to a new server for whatever reason, sometimes it won’t work right away on the new server because the newest version of PHP (for example) doesn’t support the older functions that your software uses. This is an extremely common problem.
“Deprecated” is a term used in programming to describe when a function or other feature should no longer be used.
Because of the fact that the term “deprecated” is fairly industry-specific to programming, we choose instead to call it “decapitated”. We think this is a more accurate description.
“Deprecated ” is often used in PHP because of he numerous iterations PHP has gone through. PHP describes many functions as deprecated because they were used in PHP 4 but were dumped in PHP 5. PHP also has many significant upgrades between version – subversions that have many more differences than average. PHP 5.3 is a great example of this, but there are many more significant sub-versions. (more…)