file : define the default value for flags in file_put_contents. It is optional
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3005 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
5
file.php
5
file.php
@@ -183,12 +183,13 @@ class file
|
||||
|
||||
/** Write a string to a file
|
||||
* @param string $filename Path to the file where to write the data
|
||||
* @param The data to write
|
||||
* @param string $data The data to write
|
||||
* @param int|null $flags The optional flags
|
||||
* @return the length of the data stored
|
||||
* @throws If parent directory not exists, is not writeable, or the file
|
||||
* exists and is not writeable
|
||||
*/
|
||||
public function file_put_contents ($filename, $data, $flags)
|
||||
public function file_put_contents ($filename, $data, $flags=0)
|
||||
{
|
||||
$this->debug (2, "file_put_contents ($filename)");
|
||||
$filename = $this->realpath ($filename);
|
||||
|
||||
Reference in New Issue
Block a user