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

Christian Kuhn lolli at schwarzbu.ch
Mon Mar 17 13:04:10 CET 2008


+1 after reading and testing.


Thanks
Christian


Oliver Hader wrote:
> 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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
> 
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/ 
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core



More information about the TYPO3-team-core mailing list