Skip to content

Conversation

@wimg
Copy link

@wimg wimg commented May 4, 2020

Safe mode has been deprecated for a long time. There's no reason it should still be in the list of main features

Safe mode has been deprecated for a long time. There's no reason it should still be in the list of main features
@cmb69
Copy link
Member

cmb69 commented May 4, 2020

Hmm, is features.inc even used anywhere?

@wimg
Copy link
Author

wimg commented May 4, 2020

I believe it is here : https://www.php.net/manual/en/
Unless I edited the wrong file...

@cmb69
Copy link
Member

cmb69 commented May 4, 2020

The TOC of the manual is build from the docs sources; e.g. https://www.php.net/manual/de/index.php shows German titles, while features.inc has English titles only. I assume features.inc is a relict from olden days.

Removed safe mode from main features and at the same time made the html readable, since everything was on a single line.
@wimg
Copy link
Author

wimg commented May 4, 2020

I fixed it in the right place. I also modified the html (and a small part of the PHP) to make it all more human readable, since it was quite awful, which explains why it was never maintained.
Only did the English version of it though...

@cmb69
Copy link
Member

cmb69 commented May 8, 2020

I had a closer look, and the code your patching here is only for demo/testing purposes (actually anything in https://github.com/php/web-php/tree/master/manual). What you actually want to do is to modify (or even delete) https://github.com/php/doc-en/blob/master/features/safe-mode.xml (note the different repository), but since the manual is still supposed to document all versions starting from PHP 5.0, this might not be a good idea. Anyhow, feel free to provide a PR against https://github.com/php/doc-en. :)

@cmb69 cmb69 closed this May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants