#36359 [Opn->Csd]: splFileObject: fwrite does not write

From: Date: Fri, 10 Feb 2006 16:58:04 +0000
Subject: #36359 [Opn->Csd]: splFileObject: fwrite does not write
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93134@lists.php.net to get a copy of this message
ID: 36359 Updated by: tony2001@php.net 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

« previous php.bugs (#93134) next »