Jump to content

register globals turned off then got another error


slic535

Recommended Posts

This error was noticed in CC511 and reported fixed in CC512.

The report says:

==============

When PHP is shutting down, registered shutdown functions and destructors are executed.

The Session destructor calls _close(). Session->_close() calls the function currentPage().

Near the bottom of currentPage(), a test is made for a non-empty $_GET['seo_path']. At this point, the test evaluates true and SEO::getInstance()->getItem($_GET['seo_path'], true) is called.

SEO->getItem() queries the database.

BUT! The database instance has gone away and PHP throws an error:

Fatal error: Call to a member function select() on a non-object in classesseo.class.php on line 225

PHP finally "shuts down" only because it crashed.

===============

Link to comment
Share on other sites

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.   Paste as plain text instead

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