[wp-trac] Re: [WordPress Trac] #5599: Sporadic timeout
/wp-includes/gettext.php
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 18 00:40:36 GMT 2008
#5599: Sporadic timeout /wp-includes/gettext.php
--------------------------------------+-------------------------------------
Reporter: WhitewolfFox | Owner: anonymous
Type: defect | Status: new
Priority: highest omg bbq | Milestone: 2.6
Component: General | Version: 2.3.2
Severity: normal | Resolution:
Keywords: gettext unpack() timeout |
--------------------------------------+-------------------------------------
Changes (by codestyling):
* priority: normal => highest omg bbq
Comment:
class StringReader {
var $_pos;
var $_str;
function StringReader($str='') {
$this->_str = $str;
$this->_pos = 0;
'''echo "StringReader(init)<br />";'''
}
function read($bytes) {
'''var_dump($this->_pos);'''
'''var_dump($this->_str);'''
'''exit;'''
results only in output prior to exit:
NULL string(226673) "ޕ� ........
I think, the class CachedFileReader which extends StringReader for *.mo
file handling, does not initialize the $this->_pos member! At stress cases
with optimized bytecode caching and heavy amount of requests
simultanously, the member may be set to random value from requests beside
and the page generation call shows above behavoir.
I only use cgi versions without optimizer, but i'm afraid, that mod_php in
combination with zend or other may force this described behavoir
--
Ticket URL: <http://trac.wordpress.org/ticket/5599#comment:11>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list