php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79659 A remark in documentation is missing
Submitted: 2020-06-01 11:20 UTC Modified: 2020-06-01 13:25 UTC
From: jakobr at gmx dot net Assigned:
Status: Open Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
49 - 40 = ?
Subscribe to this entry?

 
 [2020-06-01 11:20 UTC] jakobr at gmx dot net
Description:
------------
---
From manual page: https://php.net/function.libxml-use-internal-errors
---

Like on https://www.php.net/manual/de/function.ini-set.php a remark like the following is missing:

"The configuration option will keep this new value during the script's execution, and will be restored at the script's ending."


Test script:
---------------
libxml_use_internal_errors(true);
echo libxml_use_internal_errors();


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-06-01 12:03 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-06-01 12:03 UTC] cmb@php.net
While it appears to be reasonable to document that for ini_set(),
because it interferes with INI settings, I don't think it makes
sense to document that for libxml_use_internal_errors() or any of
the other state mutating functions (of which PHP has quite a lot).
 [2020-06-01 12:52 UTC] jakobr at gmx dot net
-Status: Feedback +Status: Assigned
 [2020-06-01 12:52 UTC] jakobr at gmx dot net
In my opinion the language AutoHotkey has one of the best help files out there and there every "mutating" function has such a comment, every.
 [2020-06-01 13:25 UTC] cmb@php.net
-Status: Assigned +Status: Open -Assigned To: cmb +Assigned To:
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC