Has anyone used apc_define_constants or hidef vs using define. Any true benefits or possible bugs in the latest versions?
apc-define-constants - https://www.php.net/manual/en/function.apc-define-constants.php
hidef - http://pecl.php.net/package/hidef
I know this is an oldy, but since it comes up high in both SO's own search engine and Google: a nice article about the relative performance of the methods mentioned by the OP can be found here: http://shwup.blogspot.com/2010/04/about-constants.html
I've used apc_define_constants quite a bit without any trouble - I've never tried hidef because of its 'alpha' status.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With