From:             
Operating system: 
PHP version:      Irrelevant
Package:          Filesystem function related
Bug Type:         Bug
Bug description:readfile() fails and gives no error

Description:
------------
It seems like readfile() is failing without giving any error.

It apparently happens when you call readfile() several times in a short
amount 
of time. It can also be because I'm trying to read a file which as just
been 
saved in the filesystem.

In this case it's running on PHP 5.2.6 but it seems to be happening on
other 
versions as well.

Configure command: './configure' '--enable-bcmath' '--enable-calendar' '--
enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--
enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--with-
curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr'
'--with-gd' 
'--with-gettext' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-
dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr'
'--with-
mysqli' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr'
'--
with-openssl-dir=/usr' '--with-png-dir=/usr' '--with-ttf' '--with-xmlrpc'
'--
with-xpm-dir=/usr/X11R6' '--with-xsl=/opt/xslt/' '--with-zlib'
'--with-zlib-
dir=/usr' '--enable-soap' '--with-mssql=/usr' '--enable-pdo'
'--with-pdo-mysql' 
'--with-imap=/usr/local/imap' '--enable-zip' '--with-ldap' '--with-tidy'
'--
with-magickwand=/usr' '--with-mhash' '--with-pgsql' '--with-imap-ssl'
'--with-
pdo-pgsql'



Test script:
---------------
Download source: http://www.mtcodelab.com/Development/PHP-bug/source.zip
See it in action: http://www.mtcodelab.com/Development/PHP-bug/

Expected result:
----------------
I expect to see 10 times the same image, always.

Actual result:
--------------
Sometimes some images containing "8: *,,,*" appear. If you don't see them,
try 
refreshing. It shouldn't happen!

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60253&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60253&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60253&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60253&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60253&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60253&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60253&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60253&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60253&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60253&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60253&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60253&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60253&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60253&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60253&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60253&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60253&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60253&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60253&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60253&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60253&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60253&r=mysqlcfg

Reply via email to