ID: 47488 Comment by: sub at xu9 dot ed Reported By: sub at xu9 dot de Status: Open Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.2.8 New Comment:
I've been tracking down the bug to a recursive, never-ending call of a function. Its basically a loop like this: <?php function f() { f(); } f(); ?> Anyway, i'm not sure if a segfault is the right reaction of php to this type of endless-loops? Previous Comments: ------------------------------------------------------------------------ [2009-02-24 09:55:14] sub at xu9 dot de Description: ------------ While using the pear Class Spreedsheet_Excel_Writer i noticed a reproduciable segmentation fault. due to the fact pear is (to my knowledge) entirely php-code, this seems to be a bug in php itself. I tested numberous versions of php, everywhere its the same! It happend when trying to fill a cell with the string '@-' Reproduce code: --------------- <?php require_once 'Spreadsheet/Excel/Writer.php'; // Creating a workbook $workbook = new Spreadsheet_Excel_Writer(); // sending HTTP headers $workbook->send('test.xls'); // Creating a worksheet $worksheet =& $workbook->addWorksheet('Crash Demo'); // The actual data $worksheet->write(0, 0, '@-'); // Let's send the file $workbook->close(); ?> Expected result: ---------------- Sending an XLS Actual result: -------------- Segmentation fault. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47488&edit=1