"Reedy" posted a comment on MediaWiki.r105244.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/105244#c30144

Commit summary for MediaWiki.r105244:

Parser of ASN1 syntax used in RSA keys.

Reedy's comment:

Doesn't work directly in a class though, needs self::CONSTANT

<pre>

reedy@ubuntu64-web-esxi:~$ cat test.php
<?php

class Foo{
$array = array(
        1 => LOLCONST
);

const LOLCONST = 10;
}
reedy@ubuntu64-web-esxi:~$ php -l test.php
PHP Parse error:  syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in 
test.php on line 4
Errors parsing test.php

</pre>

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to