[TYPO3-core] RFC: Bug #7874: Page lock not released when error page was generated

Oliver Hader oliver at typo3.org
Mon Mar 17 12:57:29 CET 2008


This is a SVN patch request.

Problem:
When an error page like "No template found" was generated, the page 
locks are not released and will also block the next request. This can 
also happen when an extension sends a redirect header and exits the 
script processing.

Solution:
Add a destructor to t3lib_lock which will automatically release the lock 
when the locking instance gets destroyed.

Comments:
In tslib_fe I changed the destruction of $lockObj (which is passed by 
reference) to be assigned to null - unsetting a reference only removes 
the reference, but does not change the original value.
Thanks to Christian Kuhn for pointing out this issue.

Bugtracker reference:
http://bugs.typo3.org/view.php?id=7874

Branch: Trunk


olly
-- 
Oliver Hader
TYPO3 Core Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007874.patch
Type: text/x-patch
Size: 1630 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080317/be336425/attachment.bin 


More information about the TYPO3-team-core mailing list