[MediaWiki-CodeReview] [MediaWiki r85327]: New comment added, and revision status changed

2011-09-02 Thread MediaWiki Mail
User "^demon" changed the status of MediaWiki.r85327.

Old Status: fixme
New Status: resolved

User "^demon" also posted a comment on MediaWiki.r85327.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/85327#c21833
Commit summary:

The beginnings of HipHop compiled mode support. It works now for parser cache 
hits.

* Work around HipHop issue 314 (volatile broken) and issue 308 (no compilation 
detection) by adding some large and ugly compilation detection code to 
WebStart.php and doMaintenance.php.
* Provide an MW_COMPILED constant which can be used to detect compiled mode 
throughout the codebase.
* Introduced wfIsHipHop(), which detects either compiled or interpreted mode. 
Used this to work around unusual eval() return value in eval.php.
* Work around lack of ini_get() in Maintenance.php, by duplicating wfIsHipHop().
* In Maintenance::shouldExecute(), accept "include" as an inclusion function 
name, since all kinds of inclusion give this string in HipHop.
* Introduced new class MWInit, which provides some static functions in the 
pre-autoloader environment.
* Introduced MWInit::compiledPath(), which provides a relative path for 
invoking a compiled file, and MWInit::interpretedPath(), which provides an 
absolute path for interpreting a PHP file. Used these new functions in the 
appropriate places.
* When we are running compiled code, don't include files which would generate 
duplicate class, function or constant definitions. Documented the new 
requirements on the contents of Defines.php and UtfNormalDefines.php.
* In HipHop compiled mode, it's not possible to have executable code in the 
same file as a class definition.
  ** Moved MimeMagic initialisation to the constructor.
  ** Moved Namespace.php global variable initialisation to Setup.php.
  ** Moved MemcachedSessions.php initialisation to the caller in 
GlobalFunctions.php.
  ** Moved Sanitizer.php constants and global variables to static class 
members. Introduced an accessor function for the attribs regex, as a new place 
to put code formerly at file level.
  ** Moved Language.php initialisation of $wgLanguageNames to 
Language::getLanguageNames(). Removed the global variable, marked "private" 
since forever.

* In two places: don't use error_log() with type=3 to append to a file, HipHop 
doesn't support it. Use file_put_contents() with FILE_APPEND instead.
* Work around the terrible breakage of class_exists() by using 
MWInit::classExists() instead in various places. In 
WebInstaller::getPageByName(), the class_exists() was marked with a fixme 
comment already, so I replaced it with an autoloader solution.

Comment:

Agreed, marking as such.

___
MediaWiki-CodeReview mailing list
mediawiki-coderev...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview


[MediaWiki-CodeReview] [MediaWiki r85327]: New comment added, and revision status changed

2011-04-07 Thread MediaWiki Mail
User "Platonides" changed the status of MediaWiki.r85327.

Old Status: new
New Status: fixme

User "Platonides" also posted a comment on MediaWiki.r85327.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/85327#c15793

Comment:

You are using too many ways of detecting HipHop: wfDetectCompiledMode(), 
wfIsHipHop(), defined( 'MW_COMPILED' ), function_exists( 
'hphp_thread_set_warmup_enabled' ), ReflectionFunction( 
'wfHipHopCompilerVersion' );

I think Sanitizar::$attribsRegex should be a function static

I'm not convinced about the change in Names.php. In any case, you missed 
removing its require and global from the top of Language.php

Otherwise it's ok

___
MediaWiki-CodeReview mailing list
mediawiki-coderev...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview


[MediaWiki-CodeReview] [MediaWiki r85327]: New comment added, and revision status changed

2011-04-04 Thread MediaWiki Mail
User "Raymond" changed the status of MediaWiki.r85327.

Old Status: new
New Status: fixme

User "Raymond" also posted a comment on MediaWiki.r85327.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/85327#c15689

Comment:

Seen on Translatewiki and on my local wiki:

Warning: require_once(D:\F_Programmierung\xampp\htdocs\wiki2/includes/Init.php) 
[function.require-once]: failed to open stream: No such file or directory in 
D:\F_Programmierung\xampp\htdocs\wiki2\includes\WebStart.php on line 90

Fatal error: require_once() [function.require]: Failed opening required 
'D:\F_Programmierung\xampp\htdocs\wiki2/includes/Init.php' 
(include_path='.;D:\F_Programmierung\xampp\php\PEAR') in 
D:\F_Programmierung\xampp\htdocs\wiki2\includes\WebStart.php on line 90

___
MediaWiki-CodeReview mailing list
mediawiki-coderev...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview