Re: [PHP] Re: Emulating a class destructor

2002-06-11 Thread Scott Hurring
In the 5 minutes i took to test it out, it seems that register_shutdown doesn't seem to like object methods (?) I did come up with a solution, but it't not really the best way to do things put cRoute_Destructor() into the same file as the class declarations, so that when you include() the clas

Re: [PHP] Re: Emulating a class destructor

2002-06-11 Thread Sqlcoders.com Programming Dept
> This is completely off the top of my head (i've never done this > before) -- but try single-quoting it to prevent interpolation > > register_shutdown_function('$this->cleanup()'); > Hiya, thanks for the suggestion, but i get the same 'Unable to call ...' message. Any other ways you can think of

[PHP] Re: Emulating a class destructor

2002-06-11 Thread Scott Hurring
This is completely off the top of my head (i've never done this before) -- but try single-quoting it to prevent interpolation register_shutdown_function('$this->cleanup()'); -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "William_dw -- Sqlcoders" <[EMAIL PROTECTED]> wro