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
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/]
___
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
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