#21131 [NEW]: fopen with "a+" and the a rewind does'nt work anymore
| From: | hgj at xs4all dot nl | Date: | Sat, 21 Dec 2002 14:25:00 +0000 |
| Subject: | #21131 [NEW]: fopen with "a+" and the a rewind does'nt work anymore | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-28147@lists.php.net to get a copy of this message | ||
From: hgj@xs4all.nl
Operating system: Linux 2.4.18 (Redhat)
PHP version: 4.3.0RC3
PHP Bug Type: *Directory/Filesystem functions
Bug description: fopen with "a+" and the a rewind does'nt work anymore
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 bug report at http://bugs.php.net/?id=21131&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21131&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21131&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21131&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21131&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21131&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21131&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21131&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21131&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21131&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21131&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21131&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21131&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21131&r=isapi