jasonrogena / jasonrogena/php-excel-reader

error in line 916

Open
#194 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-migrated Priority-Medium Type-Defect
Dominant language
PHP
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Hi,  

Am trying to upload an excel file to the MySql but while running the code am 
getting the following error:

PHP Deprecated:  Assigning the return value of new by reference is deprecated 
in C:\Inetpub\vhosts\test.multicon.in\httpdocs\excel_reader2.php on line 916

In line 916 of excel_reader2.php the code is:

    $this->colnames[$name] = $i;

Can anyone help me with this???

Regards,

Original issue reported on code.google.com by sinharay...@gmail.com on 25 Aug 2014 at 9:56

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in excel_reader2.php around line 916 and compare the reported deprecated by-reference assignment with the shown $this->colnames[$name] = $i; statement. Trace the surrounding Excel upload path and verify that the deprecated warning is resolved while the upload to MySQL still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
backend, databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.