#31024 [Opn->Fbk]: using fgetcsv() crashes apache
| From: | derick@php.net | Date: | Wed, 08 Dec 2004 20:36:31 +0000 |
| Subject: | #31024 [Opn->Fbk]: using fgetcsv() crashes apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69943@lists.php.net to get a copy of this message | ||
ID: 31024
Updated by: derick@php.net
Reported By: pbcomm at optonline dot net
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: WinXP SP2
PHP Version: 4.3.9
New Comment:
Provide a link to the CVS file in question please.
Previous Comments:
------------------------------------------------------------------------
[2004-12-08 20:27:25] pbcomm at optonline dot net
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 this bug report at http://bugs.php.net/?id=31024&edit=1