#21131 [Opn->Ctl]: fopen with "a+" and the a rewind does'nt work anymore
| From: | wez@php.net | Date: | Sun, 22 Dec 2002 16:28:19 +0000 |
| Subject: | #21131 [Opn->Ctl]: 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-28194@lists.php.net to get a copy of this message | ||
ID: 21131
Updated by: wez@php.net
Reported By: hgj@xs4all.nl
-Status: Open
+Status: Critical
Bug Type: *Directory/Filesystem functions
Operating System: Linux 2.4.18 (Redhat)
-PHP Version: 4.3.0RC3
+PHP Version: 4.3.0RC4
Previous Comments:
------------------------------------------------------------------------
[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