{"action":"created","issue":{"url":"https://api.github.com/repos/PHPOffice/PhpSpreadsheet/issues/402","repository_url":"https://api.github.com/repos/PHPOffice/PhpSpreadsheet","labels_url":"https://api.github.com/repos/PHPOffice/PhpSpreadsheet/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/PHPOffice/PhpSpreadsheet/issues/402/comments","events_url":"https://api.github.com/repos/PHPOffice/PhpSpreadsheet/issues/402/events","html_url":"https://github.com/PHPOffice/PhpSpreadsheet/issues/402","id":302001126,"number":402,"title":"xls file cause the exception during open by Xls reader","user":{"login":"odyswise","id":26416154,"avatar_url":"https://avatars1.githubusercontent.com/u/26416154?v=4","gravatar_id":"","url":"https://api.github.com/users/odyswise","html_url":"https://github.com/odyswise","followers_url":"https://api.github.com/users/odyswise/followers","following_url":"https://api.github.com/users/odyswise/following{/other_user}","gists_url":"https://api.github.com/users/odyswise/gists{/gist_id}","starred_url":"https://api.github.com/users/odyswise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odyswise/subscriptions","organizations_url":"https://api.github.com/users/odyswise/orgs","repos_url":"https://api.github.com/users/odyswise/repos","events_url":"https://api.github.com/users/odyswise/events{/privacy}","received_events_url":"https://api.github.com/users/odyswise/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-03T14:16:10Z","updated_at":"2018-03-03T16:32:41Z","closed_at":null,"author_association":"NONE","body":"This is:\r\n\r\n```\r\n- [x] a bug report\r\n- [ ] a feature request\r\n- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)\r\n```\r\n\r\n### What is the expected behavior?\r\nExcel file opened for reading/write\r\nI tried to use deprecated PhpExcel classes and the file opens successfully!\r\n\r\n### What is the current behavior?\r\nTrying to open test excel file cause the exception: \r\n\r\n```\r\nFatal error: Uncaught PhpOffice\\PhpSpreadsheet\\Reader\\Exception: Parameter data is empty. in /home/.../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLERead.php:331 Stack trace: #0 /home/.../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLERead.php(281): PhpOffice\\PhpSpreadsheet\\Shared\\OLERead::getInt4d('\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00...', 116) #1 /home/.../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLERead.php(187): PhpOffice\\PhpSpreadsheet\\Shared\\OLERead->readPropertySets() #2 /home/.../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls.php(1363): PhpOffice\\PhpSpreadsheet\\Shared\\OLERead->read('/tmp/phpk3bjPS') #3 /home/.../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls.php(628): PhpOffice\\PhpSpreadsheet\\Reader\\ in /home/.../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLERead.php on line 331\r\n```\r\n\r\n### What are the steps to reproduce?\r\n\r\nPlease provide a [Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve) of code that exhibits the issue without relying on an external Excel file or a web server:\r\n\r\n```php\r\n<?php\r\n\r\nrequire __DIR__ . '/vendor/autoload.php';\r\n\r\n// Create new Spreadsheet object\r\n$reader = new \\PhpOffice\\PhpSpreadsheet\\Reader\\Xls();\r\n  $spreadsheet = $reader->load($_FILES['EXP_FILE']['tmp_name']);\r\n  var_dump($spreadsheet->getSheet(0)->getCell('A1')->getValue());die;\r\n```\r\n\r\n### Which versions of PhpSpreadsheet and PHP are affected?\r\nPhpSpreadsheet 1.1 php 7.1\r\n\r\n[test.zip](https://github.com/PHPOffice/PhpSpreadsheet/files/1777526/test.zip)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PHPOffice/PhpSpreadsheet/issues/comments/370160754","html_url":"https://github.com/PHPOffice/PhpSpreadsheet/issues/402#issuecomment-370160754","issue_url":"https://api.github.com/repos/PHPOffice/PhpSpreadsheet/issues/402","id":370160754,"user":{"login":"PowerKiKi","id":72603,"avatar_url":"https://avatars0.githubusercontent.com/u/72603?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerKiKi","html_url":"https://github.com/PowerKiKi","followers_url":"https://api.github.com/users/PowerKiKi/followers","following_url":"https://api.github.com/users/PowerKiKi/following{/other_user}","gists_url":"https://api.github.com/users/PowerKiKi/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerKiKi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerKiKi/subscriptions","organizations_url":"https://api.github.com/users/PowerKiKi/orgs","repos_url":"https://api.github.com/users/PowerKiKi/repos","events_url":"https://api.github.com/users/PowerKiKi/events{/privacy}","received_events_url":"https://api.github.com/users/PowerKiKi/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T16:32:41Z","updated_at":"2018-03-03T16:32:41Z","author_association":"OWNER","body":"I can confirm PHPExcel 1.8.1 can read that file, but not PhpSpreadsheet:\r\n\r\n```php\r\n<?php\r\n\r\nrequire __DIR__ . '/vendor/autoload.php';\r\nrequire __DIR__ . '/../PHPExcel/Classes/PHPExcel.php';\r\n\r\n\\PHPExcel_IOFactory::load('test.xls');\r\n\r\n$reader = new \\PhpOffice\\PhpSpreadsheet\\Reader\\Xls();\r\n$reader->load('test.xls');\r\n```"}}
{"actor":{"display_login":"PowerKiKi"}}