[wp-trac] [WordPress Trac] #11903: insert_with_markers is not threadsafe
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 15 22:47:45 UTC 2010
#11903: insert_with_markers is not threadsafe
--------------------------+-------------------------------------------------
Reporter: strings28 | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Permalinks | Version: 2.9
Severity: major | Keywords: needs-patch
--------------------------+-------------------------------------------------
Description changed by Denis-de-Bernardy:
Old description:
> From wp-admin/includes/misc.php the function insert_with_markers may be
> called multiple times on a busy server and if the htaccess is already in
> the process of being written it is possible that two PHP threads could
> attempt to write to it causing corruption such as the following:
>
> # BEGIN WordPress
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /index.php [L]
> </IfModule>
>
> # END WordPress
> s
>
> Notice the dangling 's' at the last line
New description:
From wp-admin/includes/misc.php the function insert_with_markers may be
called multiple times on a busy server and if the htaccess is already in
the process of being written it is possible that two PHP threads could
attempt to write to it causing corruption such as the following:
{{{
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
s
}}}
Notice the dangling 's' at the last line
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11903#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list