-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
This is:
- [x] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
XLS file should be generated.
What is the current behavior?
Server crashes at this line $writer->save('hello world.xlsx') :
This page isn’t working myserveraddress.abc is currently unable to handle this request.
HTTP ERROR 500
I am under a Wordpress project. Could this cause any trouble?
What are the steps to reproduce?
I did exactly what it is said on the docs. Requirements are all ok and I installed PhpSpreadsheet into my project using composer.
<?php
require 'vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
$spreadsheet = new Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();
$sheet->setCellValue('A1', 'Hello World !');
$writer = new Xlsx($spreadsheet);
// This line makes server crash
$writer->save('hello world.xlsx');
?>Which versions of PhpSpreadsheet and PHP are affected?
I am using PHP 5.6.38 and PhpSpreadsheet 1.5.2
Metadata
Metadata
Assignees
Labels
No labels