0

For example, I would like to find out if the function mime_content_type is deprecated.

In the English manual, it seems not marked as deprecated. This is also true for all other languages, except in German, Chinese and Spanish - there it is marked as deprecated.

How can I find out which manual is correct? Can I find maybe a history of the manual? So that I can see if it was once marked as deprecated and then the note was removed again?

user3942918
  • 25,539
  • 11
  • 55
  • 67
Adam
  • 25,960
  • 22
  • 158
  • 247
  • Where did you see deprecation mark in the languages? o_O – u_mulder Sep 24 '16 at 11:55
  • @u_mulder there is a red box. I only can speak German, so I am not so sure about Chinese and Spanish - but in the German manual is (in german :D) a deprecated note. – Adam Sep 24 '16 at 12:14

2 Answers2

1

To answer the immediate question - yes, the manual once had it marked deprecated and that was removed. The problem was reported in bug #71367 and fixed in January this year, though apparently not in all translations.

Note that this was a "soft" deprecation, meaning that an E_DEPRECATED runtime notice was not raised when the function was used - it was only mentioned in the manual.


To get a manual entry's history:

On each page underneath the "Change language" dropdown selector there is an "Edit" link:

Edit link

Follow it to open PHP's online docbook editor, where you'll be greeted with a login prompt. Click Anonymous login and it'll load up the editor for that page.

On the bar separating the panels click the expander:

Tools expander

And in the panel that opens hit the reload button in the "Log" tab:

Load log

which'll let you read the changelog and perform diffs between revisions:

History

user3942918
  • 25,539
  • 11
  • 55
  • 67
0

If you include a function in PHP which is deprecated it will directly show an error while compiling that the function is deprecated.

There's no need to additionally implement a function in your code and make it more bulky else it will make your page load a little more slow as compared to normal loading time.

Akshay Shrivastav
  • 1,115
  • 4
  • 17
  • 43
  • But it depends on your PHP Version if its throws an error or not? – Adam Sep 24 '16 at 12:15
  • yes for example if you use the mysql_connect in PHP > v5 it will show an deprecated error for that you have to follow the updates procedures that have been defined :) like with php5 the OOP style is meant to be used instead of POP :) – Akshay Shrivastav Sep 24 '16 at 14:20