Edit report at https://bugs.php.net/bug.php?id=62603&edit=1
ID: 62603 Updated by: paj...@php.net Reported by: bianchini dot alessio at gmail dot com Summary: Apache 2.2 core dump with PHPExcel 1.7.7 with --enable-zip -Status: Open +Status: Feedback Type: Bug Package: hash related Operating System: Sun Solaris 8 PHP Version: 5.3.14 Block user comment: N Private report: N New Comment: As I said, we can't debug using such a huge script. I pointed the PHPExcel author to this bug, let see what can be done. Previous Comments: ------------------------------------------------------------------------ [2012-07-19 07:22:14] bianchini dot alessio at gmail dot com Hi, you can download the archive from: http://77.238.10.252/PHP/PHPDump.zip If i call the page "test.php", apache core dumped; on the contrary, if the same package I install with XAMPP, everything works properly PLEASE HELP ME!! ------------------------------------------------------------------------ [2012-07-18 21:10:02] paj...@php.net Also the crash occurs in ext/hash ------------------------------------------------------------------------ [2012-07-18 21:09:07] paj...@php.net Sorry but I can't debug using PHPEXcel, either report the bug report there or provide an archive I can use to reproduce the issue. ------------------------------------------------------------------------ [2012-07-18 20:06:18] bianchini dot alessio at gmail dot com Hi, you have to install PHPExcel 1.7.7 and in the directory class you can write this page: <?php set_time_limit(0); set_include_path(get_include_path() . PATH_SEPARATOR . './Classes/'); /** PHPExcel */ include 'PHPExcel.php'; include 'PHPExcel/IOFactory.php'; $inputFileName = "YourFile.xlsx"; $inputFileType = PHPExcel_IOFactory::identify($inputFileName); $objReader = PHPExcel_IOFactory::createReader($inputFileType); $objReader->setReadDataOnly(true); // sola lettura $objPHPExcel = $objReader->load($inputFileName); //Carico il file xls $total_sheets=$objPHPExcel->getSheetCount();// numeri sheet $allSheetName=$objPHPExcel->getSheetNames(); // nomi dei sheet $objWorksheet = $objPHPExcel->setActiveSheetIndex(0); // mi prendo il primo sheet $highestRow = $objWorksheet->getHighestRow(); // Numero riga massima $highestColumn = $objWorksheet->getHighestColumn(); // Colonna Max $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($highestColumn); for ($row = 2 ; $row <= $highestRow; ++$row) { for ($col = 0; $col <= $highestColumnIndex -1; ++$col) { $value=$objWorksheet->getCellByColumnAndRow($col, $row)->getValue(); $riga[$col]=$value; echo "Row $row, Column $col --> ".$value; } } ?> Be careful to change the Excel File name in the variable $inputFileName. There you can put the name of your example file Excel (you can write the first sheet of excel) ------------------------------------------------------------------------ [2012-07-18 19:22:26] paj...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=62603 -- Edit this bug report at https://bugs.php.net/bug.php?id=62603&edit=1