RSSAmplifier

Donat Studios · Aug 21, 2012

Late Definition of PHP Class Members

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Working on a class in our application, I discovered that it was being included before a number of constants it used for its members were even defined. Puzzled on how this had never been a problem I started to experiment; echoing the member at the bottom of the class file after the class closed showed the expected CONSTANT_NAME . I was very confused at runtime the value of the member in the…

Read on donatstudios.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.