|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-02-24 09:55 UTC] 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 14:00:01 2025 UTC |
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?