Thread:Project:Support desk/Bug in mediawiki 1.17 and laters on PHP 5.2.17.

On windows rename(a,b) not return true or false always can return nothing :)

Math.php need patching.

rename( "$wgTmpDirectory/{$this->hash}.png", "$hashpath/{$this->hash}.png" ); if( !file_exists( "$hashpath/{$this->hash}.png" )) { return $this->_error( 'math_output_error' ); }
 * 1) rename not work in windows return
 * 2) if( !rename( "$wgTmpDirectory/{$this->hash}.png", "$hashpath/{$this->hash}.png" ) ) {

Invalid code is hashed.