php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #61784 Inconsistent return values documented for get_magic_quotes_gpc()
Submitted: 2012-04-20 09:19 UTC Modified: 2012-05-13 03:15 UTC
Votes:2
Avg. Score:2.5 ± 1.5
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: cf0hay at gmail dot com Assigned: stas (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2012-04-20 09:19 UTC] cf0hay at gmail dot com
Description:
------------
http://php.net/manual/en/function.get-magic-quotes-gpc.php

On this page, the return values of this function are 0 or 1.

But at the notes section, it talks about "TRUE".

Also, http://www.php.net/manual/en/migration54.incompatible.php talks about get_magic_quotes_gpc() returning FALSE, php 5.4 is stable and out, but the online documentation doesn't reflect this change (from 0 to FALSE).

I'm using 5.3 yet, I know it's actually returning 1 or 0. Dunno about 5.4 yet, if it's returning 0 or FALSE.

I don't mind what does it return, just please keep the docs consistent with it.

Thanks.

Test script:
---------------
N/A

Expected result:
----------------
N/A

Actual result:
--------------
N/A

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-13 03:15 UTC] stas@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: stas
 [2012-05-13 03:15 UTC] stas@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.

The docs seem to be updated now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 08:01:33 2024 UTC