2
I always use the English documentation of PHP, because it seems to me that it is always more up to date, but when accessing the documentation of file_get_contents
in Portuguese, I noticed the following messages:
string file_get_contents ( string $filename [, int $flags [, resource $context [, int $offset [, int $maxlen ]]]] )
flags
:
Warning
For all versions prior to PHP 6, this parameter is called use_include_path and is a bool. The flags parameter is only available from PHP 6. If you are using a previous version and want to search for the filename file in include_path, this parameter must be TRUE. From PHP 6, you must use the FILE_USE_INCLUDE_PATH flag.
Changelog
- 5.0.0 Added context support.
- 5.1.0 Added parameters
offset
andmaxlen
. - 6.0.0 The parameter
use_include_path
has been replaced by the parameterflags
.
But in the English documentation it is like this:
Note:
As of PHP 5 the FILE_USE_INCLUDE_PATH Constant can be used to Trigger include path search.
That is, it seems to me that the information in Portuguese says that the parameter $flags
is since version 6 and in the English documentation the parameter $flags
is used since version 5.
Is this an error in the English documentation? I used FILE_USE_INCLUDE_PATH
and worked perfectly with PHP5, it makes me think that the documentation in Portuguese is not reliable.