[MediaWiki-l] switch($X){case 'Y':trigger_error(can you believe \$X is NOT Y but Z); }

2014-01-03 Thread jidanni
In LocalSettings.php I put switch($wgSitename){case 'ABJ': trigger_error(can you believe \$wgSitename is $wgSitename and not ABJ?!,E_USER_WARNING);} For each HTTP GET, I see in /var/log/apache2/error.log: [Fri Jan 03 15:48:43.103883 2014] [:error] [pid 6608] [client 127.0.0.1:52043] PHP

Re: [MediaWiki-l] switch($X){case 'Y':trigger_error(can you believe \$X is NOT Y but Z); }

2014-01-03 Thread Daniel Friesen
On 2014-01-03 2:37 AM, jida...@jidanni.org wrote: Or is this some weird php/apache echoing? You can test whether it is or isn't by adding an mt_rand() call to your log test. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/] ___

Re: [MediaWiki-l] switch($X){case 'Y':trigger_error(can you believe \$X is NOT Y but Z); }

2014-01-03 Thread jidanni
DF You can test whether it is or isn't by adding an mt_rand() call to your log test. You would have to tell me how. But anyway I've isolated the problem: $ cat n.php ?php $wgSitename='ABJ'; $wgSitename=0; switch($wgSitename){case 'ABJ':trigger_error(can you believe \$wgSitename is $wgSitename

Re: [MediaWiki-l] switch($X){case 'Y':trigger_error(can you believe \$X is NOT Y but Z); }

2014-01-03 Thread jidanni
OK I see, http://www.php.net/manual/en/control-structures.switch.php#86911 http://www.php.net/manual/en/control-structures.switch.php#97112 http://www.php.net/manual/en/control-structures.switch.php#84150 How awful. No wonder people write