Last modified: 2008-09-28 04:05:10 UTC
Created attachment 5367 [details] Patch to fix the bug On databases with real timestamps (e.g. Postgresql), wasDeletedSinceLastEdit() in includes/EditPage.php fails to detect that the page was deleted since the last edit. This is due to it retrieving something resembling "2008-09-28 01:10:48+00" from the database in getLastDelete() and then trying to subtract from it as if it were an integer. PHP converts that timestamp to the number 2008, which is going to be before any $starttime in the last 2000 years or so, and thus the check always fails. The attached patch seems to fix it. This is using php 5.2.6, postgresql 8.3.4, and MediaWiki r41327.
Fixed in r41335