ID:               36359
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php-work at yandex dot ru
-Status:           Open
+Status:           Closed
 Bug Type:         SPL related
 Operating System: Linux (CentOS 4.2)
 PHP Version:      5CVS-2006-02-10 (snap)
 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------

[2006-02-10 17:42:22] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36359&edit=1

Reply via email to