ID:               34118
 User updated by:  xuefer at 21cn dot com
 Reported By:      xuefer at 21cn dot com
 Status:           Open
 Bug Type:         Filesystem function related
 Operating System: cygwin
 PHP Version:      5CVS-2005-08-13 (dev)
 New Comment:

btw. unicode_semantics=Off

phpmyadmin code:
$config_fd = fopen($cfgfile_to_load, 'r');
fread($config_fd, filesize($cfgfile_to_load));
fail to read whole file if it's big enough (40k in my case)


Previous Comments:
------------------------------------------------------------------------

[2005-08-13 11:49:59] xuefer at 21cn dot com

Description:
------------
fseek SEEK_SET bug under cygwin
tested with lastest CVS checkout

Reproduce code:
---------------
<?php
$fp = fopen(__FILE__, "rb");
fseek($fp, 0, SEEK_SET);
echo fread($fp, 1);
fseek($fp, 0, SEEK_SET);
echo fread($fp, 1);
?>

Expected result:
----------------
<<

Actual result:
--------------
<?


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34118&edit=1

Reply via email to