Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update excel_reader2.php Fixed deprecated same name construct error #134

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions php-excel-reader/excel_reader2.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function v($data,$pos) {

class OLERead {
var $data = '';
function OLERead(){ }
function __construct(){ }

function read($sFileName){
// check if file exist and is readable (Darko Miljanovic)
Expand Down Expand Up @@ -912,7 +912,7 @@ function _format_value($format,$num,$f) {
*
* Some basic initialisation
*/
function Spreadsheet_Excel_Reader($file='',$store_extended_info=true,$outputEncoding='') {
function __construct($file='',$store_extended_info=true,$outputEncoding='') {
$this->_ole = new OLERead();
$this->setUTFEncoder('iconv');
if ($outputEncoding != '') {
Expand Down Expand Up @@ -1733,5 +1733,3 @@ function _GetInt4d($data, $pos) {
}

}

?>