#31024 [NEW]: using fgetcsv() crashes apache
From: pbcomm at optonline dot net
Operating system: WinXP SP2
PHP version: 4.3.9
PHP Bug Type: Apache2 related
Bug description: using fgetcsv() crashes apache
Description:
------------
Crashes Apache 2.0.52
Reproduce code:
---------------
?
$master_file = 'kva.csv';
$m_handle = fopen($master_file, 'r');
$row = 0;
while ($data = fgetcsv($m_handle, -1, ',', '"')) {
var_dump($data);
$row++;
}
fclose($m_handle);
unset($data);
?>
Expected result:
----------------
array(6) { [0]=> string(26) "category_fieldlist: "name"" [1]=>
string(25) "templatefile_categorymain" [2]=> string(24)
"templatefile_categorysub" [3]=> string(5) "image" [4]=> string(11)
"description" [5]=> string(16) "show_button_back" }
Actual result:
--------------
Apache HTTP Server has encountered a problem and needs to close. We are
sorry for the inconvenience.
szAppName : Apache.exe szAppVer : 2.0.52.0 szModName : php4ts.dll
szModVer : 4.3.9.9 offset : 000c1ecf
--
Edit bug report at http://bugs.php.net/?id=31024&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31024&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31024&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31024&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31024&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31024&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31024&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31024&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31024&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31024&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31024&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31024&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31024&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31024&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31024&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31024&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31024&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31024&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31024&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31024&r=mysqlcfg
Thread (4 messages)
- pbcomm at optonline dot net