From:             rommer at active dot by
Operating system: linux-2.6.x i386
PHP version:      5.2CVS-2008-07-22 (snap)
PHP Bug Type:     Reproducible crash
Bug description:  Bus error on file_get_contents

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 bug report at http://bugs.php.net/?id=45591&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45591&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45591&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45591&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45591&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45591&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45591&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45591&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45591&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45591&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45591&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45591&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45591&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45591&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45591&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45591&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45591&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45591&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45591&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45591&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45591&r=mysqlcfg

Reply via email to