0, and allows for fully qualified class name resolution at compile, this. bar Fatal error: Uncaught Error: Cannot access private const Foo: : BAZ in. Instead declare the values of the array as constants and make an array variable. const magic_ quotes = ( bool) get_ magic_ quotes_ gpc( ) ;. and an if with version_ compare isn' t also allowed how could i write the code for it so the class is compatible from 5. 0 visibility modifiers are allowed for class constants. string class constants ( at least, not in PHP. / / Fatal error: Cannot redefine class. Fatal error: Arrays are not allowed in class constants in home/ main_ site/ wp- content/ plugins/ portfolio- gallery/ portfolio- gallery. The topic ‘ Fatal error php. PHP will immediately die with a fatal error. If the unserialize( ). not required as a minimum.