ID:               45591
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rommer at active dot by
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: linux-2.6.x i386
 PHP Version:      5.2CVS-2008-07-22 (snap)
 New Comment:

I can not reproduce this. How about giving us the basic info:

1. the configure line
2. output of "php -v"
3. output of "php -m"



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

[2008-07-22 15:02:28] rommer at active dot by

Description:
------------
"Bus error" calling file_get_contents

Reproduce code:
---------------
<?

// file name
$filename = 'test.dat';

// make this file 50000 bytes lenght
$f = fopen($filename, 'w');
ftruncate($f, 50000);
fclose($f);

// read content from 49152 byte, 8192 bytes length
file_get_contents($filename, false, NULL, 49152, 8192);

?>

Expected result:
----------------
nothing

Actual result:
--------------
"Bus error"


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


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

Reply via email to