Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6139391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:59:02+00:00 2026-05-23T17:59:02+00:00

My site has a deprecated error at this line: $obj =& new $class($table,$primkeyArr,$this); it

  • 0

My site has a deprecated error at this line:

$obj =& new $class($table,$primkeyArr,$this);

it is because of &. It gives this error:

Deprecated: Assigning the return value of new by reference is deprecated in ....

It is a issue in php 5.3.

If I remove the & from this line, the error does away. But I don’t know if it causes any problem if I put my site on a server with lower PHP version (5.2) or not.

Will removing the & work ok both in PHP 5.2 and in PHP 5.3?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:59:03+00:00Added an answer on May 23, 2026 at 5:59 pm

    In PHP 5, objects are handled in a reference-like manner by default. So removing the & probably won’t change anything.

    But as assigning by reference breaks old references, there might still be a difference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This site has a technique to pass xml data around in Microsoft SQL Server:
My site has working fine for a while but today its shows this database
This site has the pretty source code listing. Looking into the source code I
Our site has this call at the beginning to find the page's name (e.g.
My site has a drop-down menu built in CSS and JavaScript that drops down
My site has quite a deep navigation structure and quite often it looks like
Our site has multiple wizards where various data is collected over several pages, and
My site has an input box, which has a onkeydown event that merely alerts
My site has a library full of games, nations, game scenarios, etc. library.php is
my site has three div elements, header, content and footer. i have a picture

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.