php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64792 Information is not correct
Submitted: 2013-05-08 14:17 UTC Modified: 2013-10-14 10:02 UTC
From: michael dot buergi at gmx dot net Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Debian 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michael dot buergi at gmx dot net
New email:
PHP Version: OS:

 

 [2013-05-08 14:17 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-14 10:01 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=331820
Log: #64792 incorrect information.
 [2013-10-14 10:02 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-10-14 10:02 UTC] krakjoe@php.net
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 ...
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 15:00:01 2026 UTC