Home » PHP » PHP_Compat » Bug #4385
spelling mistake, minor errors in file_put_contents.php
Details
| Submitted | 2005-05-19 02:19 UTC |
|---|---|
| From | jasper at bryant-greene dot name |
| Assigned | aidan |
| Status | Closed |
| Package | PHP_Compat |
| PHP Version | Irrelevant |
| OS | N/A |
| Roadmaps | (Not assigned) |
Comments
[2005-05-19 02:19 UTC] jasper at bryant-greene dot name
Description:
------------
In the PHP_Compat package, file_put_contents.php contains the following (minor) mistakes:
This:
// Get the length of date to write
$length = strlen($content);
Should probably be:
// Get the length of data to write
$length = strlen($content);
---
Also:
// Check what mode we are using
$mode = ($flags & FILE_APPEND) ? $mode = 'a' : $mode = 'w';
Correct me if I'm wrong, but couldn't that just be:
// Check what mode we are using
$mode = ($flags & FILE_APPEND) ? 'a' : 'w';