[PHP] Static constructor support

2012-09-26 Thread Yves Goergen
Hi, I couldn't find out whether PHP supports static constructors, and how the syntax is. The web and the PHP manual don't mention it. So is it not supported? If it is, is there a PHP version restriction? -- Yves Goergen - nospam.l...@unclassified.de - http://unclassified.de -- PHP General

Re: [PHP] Static constructor support

2012-09-26 Thread Yves Goergen
messages and so on. I have added a random per-request tag to distinguish concurrent requests in the trace file and thought that generating such a tag would perfectly fit in a static constructor. Now a helper function does that check and generates one on the first call of the method. -- Yves Goergen

Re: [PHP] Static constructor support

2012-09-27 Thread Yves Goergen
On 26.09.2012 23:38 CE(S)T, Stuart Dallas wrote: On 26 Sep 2012, at 22:29, Yves Goergen nospam.l...@unclassified.de wrote: My class is a debug helper class, that can write trace messages and so on. I have added a random per-request tag to distinguish concurrent requests in the trace file