ID:               36508
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sqchen at citiz dot net
-Status:           Open
+Status:           Bogus
-Bug Type:         Date/time related
+Bug Type:         Filesystem function related
 Operating System: redhat 7.3
 PHP Version:      5.1.2
 New Comment:

This segfault is expected if PHP has been built with --enable-debug.


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

[2006-02-24 10:08:42] sqchen at citiz dot net

Description:
------------
fgetcsv($fp, 2147483647) will cause segfault, this behavior is same as
fgets ......

Reproduce code:
---------------
<?php
$fp =fopen("1.txt", "r");
fgetcsv($fp, 2147483647);
?>

Actual result:
--------------
FATAL:  emalloc():  Unable to allocate -2147483648 bytes
Segmentation fault



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


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

Reply via email to