Jump to content

Migrating From PHP 5.0.4 to PHP 5.2.9


phantom152

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..

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.