PHP :: Bug #36359 :: splFileObject: fwrite does not write
| Bug #36359 | splFileObject: fwrite does not write | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-02-10 17:42 UTC | Modified: | 2006-02-10 17:58 UTC | ||
| From: | php-work at yandex dot ru | Assigned: | |||
| Status: | Closed | Package: | SPL related | ||
| PHP Version: | 5CVS-2006-02-10 (snap) | OS: | Linux (CentOS 4.2) | ||
| Private report: | No | CVE-ID: | None | ||
[2006-02-10 17:42 UTC] php-work at yandex dot ru
Description:
------------
splFileObject->fwrite() does not write
Reproduce code:
---------------
> ls -l foo.txt
-rwxrwxrwx 1 nobody nobody 0 Feb 10 19:25 foo.txt*
<?php
$file = new SplFileObject('foo.txt', 'w');
$file->fwrite('text123');
?>
Expected result:
----------------
> ls -l foo.txt
-rwxrwxrwx 1 nobody nobody 8 Feb 10 19:25 foo.txt*
> cat foo.txt
text123
Actual result:
--------------
> ls -l foo.txt
-rwxrwxrwx 1 nobody nobody 0 Feb 10 19:25 foo.txt*
> cat foo.txt
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-02-10 17:58 UTC] tony2001@php.net