Bug #19362 [Dup]: PHP can't parse Worksheet.php

From: Date: Sat, 31 Mar 2012 17:29:34 +0000
Subject: Bug #19362 [Dup]: PHP can't parse Worksheet.php
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8484@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19362&edit=1 ID: 19362 Updated by: daniel.oconnor@gmail.com Reported By: martin at ponderwell dot net Summary: PHP can't parse Worksheet.php Status: Duplicate Type: Bug Package: Spreadsheet_Excel_Writer Operating System: Ubuntu Linux 10.04 Package Version: 0.9.3 PHP Version: 5.3.2 Roadmap Versions: New Comment: Also seems likely to be fixed in svn. Previous Comments: ------------------------------------------------------------------------ [2012-03-31 18:29:16] doconnor -Status: Open +Status: Duplicate ------------------------------------------------------------------------ [2012-03-30 17:04:54] djehuty Description: ------------ The problem is these lines in _storeMergedCells() $string=$header.$data; $this->_append(&$string, true); the PHP Parser (under FastCGI) crashes on the second line, giving an Apache "Internal Server Error". Test script: --------------- 1. Include Spreadsheet/Excel/Writer 2. Apache crashes on page containing the include. Actual result: -------------- Those two lines in the description don't actually make sense: $string is a local variable, so putting a reference to it in the append string will be a bug when $string goes out of scope. Also _append() takes only one parameter. Replaced lines with $this->_append($header . $data); This prevents the parse crash, but I haven't tested it as a correct solution. ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19362&edit=1

« previous php.pear.bugs (#8484) next »