On 2005.05.25, Stuart Children <[EMAIL PROTECTED]> wrote: > For example, much of the code makes use of namespaces, [...]
It is likely you will feel pain running that code under AOLserver, because as you discovered, namespace variables do NOT get unset at the end of request processing as part of the cleanup callback. While it would be easy to add the necessary code to clean up namespace variables, I think it isn't being done because doing it could get "expensive" because, in order to implement it, we'd have to iterate over every single namespace (which could be a large number) then retrieve the list of variables per namespace and unset them. > (If globals weren't cleared out either I'd have a nightmare. :]) Indeed. Thankfully, cleaning out the global namespace is generally a fixed cost operation and just had to be done in order to make most scripts work in a sane fashion. > I'm also simply interested to understand for my own benefit, and so I > can develop future code in a manner that best suits AOLserver. Avoid namespaces. :-) > >>Would people would be interested in a seperate "first adp error aborts > >>the whole file" feature for 4.[01]? From a brief inspection of the > > I'll dig further with the CVS sources... Jim's "singlescript" or whatever it was called will do what you want: the entire ADP gets turned into a single script, and an error anywhere in it will abort the entire script, naturally. -- Dossy -- Dossy Shiobara mail: [EMAIL PROTECTED] Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70) -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
