Doc #64792 [Opn->Csd]: Information is not correct
| From: | krakjoe@php.net | Date: | Mon, 14 Oct 2013 10:02:25 +0000 |
| Subject: | Doc #64792 [Opn->Csd]: Information is not correct | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10485@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64792&edit=1
ID: 64792
Updated by: krakjoe@php.net
Reported by: michael dot buergi at gmx dot net
Summary: Information is not correct
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Debian 7
PHP Version: Irrelevant
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Thanks for your input ...
Note that, the function documentation still requires changing, I'm in the process of doing that
... when I find out what to change it too ...
Previous Comments:
------------------------------------------------------------------------
[2013-10-14 10:01:44] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=331820
Log: #64792 incorrect information.
------------------------------------------------------------------------
[2013-05-08 14:17:06] michael dot buergi at gmx dot net
Description:
------------
---
From manual page: http://www.php.net/function.set-magic-quotes-runtime#refsect1-function.set-magic-quotes-runtime-description
---
I am currently testing 5.4.4 on debian 7.
According to the documentation on @method set_magic_quotes_runtime() this function should not exist.
In reality however: the function exists and executes without any exception, php error, notice or
warning when the parameter is set to false.
I think that this is good behaviour since a lot of php code does use this method to restore a
previously saved state.
But it should be properly documented. also on this page: http://www.php.net/manual/en/migration54.incompatible.php
Thanks for your work!
Test script:
---------------
<?php
var_dump(function_exists('set_magic_quotes_runtime'));
set_magic_quotes_runtime(0);
ini_set('magic_quotes_runtime', 0);
echo 'done.';
Expected result:
----------------
bool(false);
(EXCEPTION WILL BE THROWN)
Actual result:
--------------
bool(true)
done.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64792&edit=1