php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51702 documentation is incorrect for recent PHP versions
Submitted: 2010-04-30 08:06 UTC Modified: 2010-04-30 21:06 UTC
From: php dot net at dynamicink dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php dot net at dynamicink dot com
New email:
PHP Version: OS:

 

 [2010-04-30 08:06 UTC] php dot net at dynamicink dot com
Description:
------------
http://us2.php.net/manual/en/function.stripslashes.php

Text says "...magic_quotes_gpc is on (it's on by default)..."

Magic quotes are no longer on by default


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-30 15:39 UTC] philip@php.net
-Status: Open +Status: Bogus
 [2010-04-30 15:39 UTC] philip@php.net
Actually, they are on by default still. Default values are determined by what PHP 
does without a php.ini.
 [2010-04-30 19:30 UTC] php dot net at dynamicink dot com
Okay, so this is may in fact be technically-accurate, but perhaps not intuitive, since most users will likely use the php.ini and leave the default magic_quotes_gpc setting.

Your thoughts?
 [2010-04-30 19:56 UTC] philip@php.net
-Status: Bogus +Status: Open
 [2010-04-30 19:56 UTC] philip@php.net
Your concern makes sense but this would get complicated fast, as there are two 
php.ini-* files with different values. And maybe a third will be added? And 
which do you consider the default?

I feel the default value must be the actual default value in php-src, and not 
from one of several distributed php.ini files.

Although in this particular MQ case, we should likely lose the "(it's on by 
default)" string because it may eventually be forgotten/wrong over time.
 [2010-04-30 20:05 UTC] php dot net at dynamicink dot com
I see default as what works after base installation which usually includes a php.ini file - I just checked the 5.3.2 package and both php.ini files (php.ini-development & php.ini-production) have magic quotes off by default.

Your point about manageability is certainly relevant although that could also apply to every changed feature documented within PHP :)
 [2010-04-30 20:19 UTC] philip@php.net
But some directives differ between those two files, and in those cases, which is 
the default value?

At any rate, maybe I'm crazy, but I still think php-src dictates the default, as 
opposed to those two idealistic php.ini files.
 [2010-04-30 21:06 UTC] bjori@php.net
-Status: Open +Status: Bogus
 [2010-04-30 21:06 UTC] bjori@php.net
No php.ini file is installed by default when you compile PHP yourself.

Many (all?) distributions however use php.ini-recommended/php.ini-production 
values for *their* default values.

It is not up to us to define what distribution php.ini values default to.

Default values are what PHP built-in default values (*without* any php.ini file 
what-so-ever) defaults to.

I do however totally agree that PHP should ship a php.ini file, which is 
installed by default, and uses the built-in default values.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 22:01:31 2024 UTC