RE: [PHP-DOC] Documentation of ini directive 'file_uploads'

2013-09-09 Thread Christian Stoller
> You are right. file_uploads is a boolean and has nothing to do with > the allowed max upload size. > > The misleading paragraph was accidentally introduced when trying to > unify how PHP parses "mb", "kb", "b" and whatelse as part of ini > values (9 years ago!). > > See http://svn.php.net/viewvc?

Re: [PHP-DOC] Strict standards errors

2013-09-09 Thread Hannes Magnusson
That's a slightly different issue though. In general functions with optional arguments have default value, or can be faked with for example empty array or null. In those cases we should use that for the initializer argument. For others, I think we need to evaluate them on case by case bases what

Re: [PHP-DOC] Strict standards errors

2013-09-09 Thread Chris Wright
On 10 September 2013 00:28, Hannes Magnusson wrote: > IMO an optional argument should have a way to "skip it, using default value". > its annoying when in userland you have to do > if ($option) { > foo($arg1, $arg2, $option); > } else { > foo($arg1, $arg2); > } > > And I consider it a bug when I c

Re: [PHP-DOC] Strict standards errors

2013-09-09 Thread Hannes Magnusson
On Mon, Sep 9, 2013 at 3:37 PM, Chris Wright wrote: > - What sort of timescale are we looking at for this (I'm not expecting > dates but maybe weeks vs. months vs. years?) We do things whenever we have time. This change is even more tricky (although easier in some respect) then the -> docbook5 b

Re: [PHP-DOC] Strict standards errors

2013-09-09 Thread Levi Morrison
Tangent: On Mon, Sep 9, 2013 at 4:37 PM, Chris Wright wrote: > > I know the new MD-esque format is pretty much definitely going to > happen... Docs migration is a serious subject that needs more discussion if it's going to happen.

[PHP-DOC] Strict standards errors

2013-09-09 Thread Chris Wright
Some of you may have noticed that I've been on a bit of a crusade to nuke as many issues as possible in the OE - keep the patches list empty, evaluate changes that are left in "work in progress" by users who don't realise they need to create a patch (I know this is an issue as I have previously don

Re: [PHP-DOC] Documentation of ini directive 'file_uploads'

2013-09-09 Thread Hannes Magnusson
On Mon, Sep 9, 2013 at 6:02 AM, Chris Wright wrote: >> But the docs mentions that "file_uploads" accept integer values, too. >> It says: "When an integer is used, the value is measured in bytes." > > The documentation here is indeed misleading/wrong. > > file_uploads is represented internally as a

RE: [PHP-DOC] Documentation of ini directive 'file_uploads'

2013-09-09 Thread Chris Wright
> But the docs mentions that "file_uploads" accept integer values, too. > It says: "When an integer is used, the value is measured in bytes." The documentation here is indeed misleading/wrong. file_uploads is represented internally as a boolean: http://lxr.php.net/xref/PHP_5_5/main/php_globals.h#

FW: [PHP-DOC] Documentation of ini directive 'file_uploads'

2013-09-09 Thread Christian Stoller
(sorry, I forgot to CC the list :( ) > The mailing list is generally here for people working on > documentation and it treats issues such as broken mirror, > broken builds, etc. Okay, thanks for the hint. > > But since we're already here, there are three php ini settings > you are looking at in

Re: [PHP-DOC] Documentation of ini directive 'file_uploads'

2013-09-09 Thread Stelian Mocanita
Hello, The mailing list is generally here for people working on documentation and it treats issues such as broken mirror, broken builds, etc. But since we're already here, there are three php ini settings you are looking at in terms of file uploads. The one you mentioned, "file_uploads"[2] has in

[PHP-DOC] Documentation of ini directive 'file_uploads'

2013-09-09 Thread Christian Stoller
Hi. I have a question about the PHP ini directive “file_uploads” (see http://www.php.net/manual/en/ini.core.php#ini.file-uploads). Sorry, if this is not the correct mailinglist to ask this question, but I think the documentation is no