php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php-work at yandex dot ru
New email:
PHP Version: OS:

 

 [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 commitsRelated reports
 [2006-02-10 17:58 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC