Doc #51702 [Opn->Bgs]: documentation is incorrect for recent PHP versions

From: Date: Fri, 30 Apr 2010 19:06:21 +0000
Subject: Doc #51702 [Opn->Bgs]: documentation is incorrect for recent PHP versions
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4290@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51702&edit=1 ID: 51702 Updated by: bjori@php.net Reported by: php dot net at dynamicink dot com Summary: documentation is incorrect for recent PHP versions -Status: Open +Status: Bogus Type: Documentation Problem Package: Documentation problem Operating System: n/a PHP Version: Irrelevant New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2010-04-30 20:19:37] 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 20:05:26] 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 19:56:19] 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 19:30:48] 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 15:39:40] philip@php.net Actually, they are on by default still. Default values are determined by what PHP does without a php.ini. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=51702 -- Edit this bug report at http://bugs.php.net/bug.php?id=51702&edit=1

« previous php.doc.bugs (#4290) next »