2 Replies - 768 Views - Last Post: 26 September 2013 - 05:15 PM Rate Topic: -----

#1 mutago234   User is offline

  • D.I.C Regular

Reputation: 1
  • View blog
  • Posts: 259
  • Joined: 08-September 13

deprecated: assigning the return value of new by reference is deprecat

Posted 26 September 2013 - 04:40 PM

I see the following error when a code session.php

Deprecated: Assigning the return value of new by reference is deprecated in C:/xampp/php/PEAR/Config.php on line 80

I have look into the code and they was no ampersand (&) value in it. it seems the error is from XAMPP Server
Is This A Good Question/Topic? 0
  • +

Replies To: deprecated: assigning the return value of new by reference is deprecat

#2 Atli   User is offline

  • Enhance Your Calm
  • member icon

Reputation: 4240
  • View blog
  • Posts: 7,216
  • Joined: 08-June 10

Re: deprecated: assigning the return value of new by reference is deprecat

Posted 26 September 2013 - 04:54 PM

The notice is telling you exactly where the problem is:

Quote

C:/xampp/php/PEAR/Config.php on line 80

I don't know what code you were looking at, but that line in that file would definitely have an ampersand. PHP doesn't lie about these things.

If you are getting this notice when opening a "session.php" file, it is probably including the file pointed to in the message. Note that it may not be including that file directly; it may well be including some PEAR module that is then including this config file.
Was This Post Helpful? 0
  • +
  • -

#3 mutago234   User is offline

  • D.I.C Regular

Reputation: 1
  • View blog
  • Posts: 259
  • Joined: 08-September 13

Re: deprecated: assigning the return value of new by reference is deprecat

Posted 26 September 2013 - 05:15 PM

Thank You Atli, I have seen the & within config.php in the XAMMP Server.
its now working.

Thank You
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1