Edit report at https://bugs.php.net/bug.php?id=62603&edit=1

 ID:               62603
 Updated by:       php-bugs@lists.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:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          hash related
 Operating System: Sun Solaris 8
 PHP Version:      5.3.14

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2012-07-19 07:28:02] paj...@php.net

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.

------------------------------------------------------------------------
[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)

------------------------------------------------------------------------


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

Reply via email to