Jump to content

Recommended Posts

Hi All,

 

I have got my codes in PHP 5.0.4 version .

Now i am migrating to PHP 5.2.9 Version .

 

In PHP 5.0.4 version

In the DAO File i have got "__destruct".

 

In PHP 5.2.9 Version

In the DAO Files do i need to change the "__destruct"  to "_destruct"

 

Thanking in Advance.

 

Link to comment
https://forums.phpfreaks.com/topic/186019-migrating-from-php-504-to-php-529/
Share on other sites

Try making sure that display_errors is set to "on" and that error_reporting is set to E_ALL. You can do this by placing the following at the top of your script:

ini_set('display_errors', true);
error_reporting(E_ALL);

 

Then you should be able to get an error message.

Im no expert at destructors but my 2 cents (for what its worth):

Perhaps there is an error in your destructor causing the site not to work? Giving the function the name _destruct is just the same as naming it 'endmycodenow' it wont be executed unless its called..

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.