#47488 [Opn->Bgs]: Segmentation Fault
| From: | derick@php.net | Date: | Tue, 24 Feb 2009 10:19:33 +0000 |
| Subject: | #47488 [Opn->Bgs]: Segmentation Fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-134153@lists.php.net to get a copy of this message | ||
ID: 47488
Updated by: derick@php.net
Reported By: sub at xu9 dot de
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 5.2.8
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Yes, this is expected.
Previous Comments:
------------------------------------------------------------------------
[2009-02-24 10:12:51] sub at xu9 dot ed
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?
------------------------------------------------------------------------
[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