Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suresh jatrana
    New Member
    • Oct 2012
    • 1

    #1

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PE AR\MDB2.php on line 390

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PE AR\MDB2.php on line 1885

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PE AR\MDB2.php on line 2572

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PE AR\MDB2.php on line 2595

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PE AR\MDB2.php on line 2940
    MDB2 Error: not found
    Last edited by suresh jatrana; Oct 15 '12, 12:09 PM. Reason: any idea
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    I'm not sure how you expect us to help without seeing the code referenced by the errors.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      that’s an issue with the MDB2 PEAR package, which is written to support PHP 4.

      the code is most likely along $some_var &= new SomeClass();, which is, as stated, deprecated in PHP 5.

      your best bet is to not use MDB2 since as of PHP 5.1 there is the native PDO that does the same.

      Comment

      Working...