RE: [PHP-DOC] Documentation of ini directive 'file_uploads'
| From: | Chris Wright | Date: | Mon, 09 Sep 2013 13:02:51 +0000 |
| Subject: | RE: [PHP-DOC] Documentation of ini directive 'file_uploads' | ||
| References: | 1 2 3 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969384612@lists.php.net to get a copy of this message | ||
> 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#130
...and (unsurprisingly) it is parsed as a boolean:
http://lxr.php.net/xref/PHP_5_5/main/main.c#534
This has actually been raised as a docs bug before:
https://bugs.php.net/bug.php?id=60036
salathe, do you have any more info on this?
> What would that mean for example:
> ;php.ini
> file_uploads = 1024
According to what I see at first glance, this would be the same as On
I'll try and take a closer look at this later today.
Cheers, Chris