#21131 [Csd->Opn]: fopen with "a+" and the a rewind does'nt work anymore
| From: | k.schroeder@php.net | Date: | Sun, 02 Feb 2003 20:35:17 +0000 |
| Subject: | #21131 [Csd->Opn]: fopen with "a+" and the a rewind does'nt work anymore | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31900@lists.php.net to get a copy of this message | ||
ID: 21131
Updated by: k.schroeder@php.net
Reported By: hgj@xs4all.nl
-Status: Closed
+Status: Open
Bug Type: *Directory/Filesystem functions
Operating System: Linux 2.4.18 (Redhat)
PHP Version: 4.3.0RC4
New Comment:
ext/standard/tests/file/bug21131.phpt failed on W2k server with
latetest win32-snap:
---- EXPECTED OUTPUT
int(6)
int(0)
foobar
---- ACTUAL OUTPUT
int(0)
int(0)
foobar
---- FAILED
Previous Comments:
------------------------------------------------------------------------
[2002-12-22 12:16:59] iliaa@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, 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/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2002-12-21 08:25:00] hgj@xs4all.nl
With 4.2.3 and below the next code did give the contents of $file only
when the Apache runtime user was allowed to update that file. Now it
nevers gives the content of the file anymore.
$fp = fopen($file,"a+");
rewind($fp);
$fstr = fread($fp, filesize($file));
The PHP version box did not give 4.3.0RC4, but it's still there.
./configure --with-openssl --enable-cli --prefix=/www --with-mcrypt
--with-config-file-path=/www/conf --with-mysql
--with-apache=../apache_1.3.27 --enable-track-vars --with-gzlib
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21131&edit=1