Improve stability.

Give it a new CLSID and change the engine name to ActivePHP5.
Globals registered by the scripting host are now auto-globals and don't
need to be declared global when accessed from within functions.
This commit is contained in:
Wez Furlong 2004-05-04 14:54:01 +00:00
parent d6838a86f3
commit c921ceb49c
6 changed files with 212 additions and 63 deletions

View file

@ -18,6 +18,7 @@
/* $Id$ */
#include <activscp.h>
#include <objsafe.h>
#include "zend.h"
#include <setjmp.h>
@ -106,6 +107,9 @@ class TPHPScriptingEngine:
public IActiveScript,
public IActiveScriptParse,
public IActiveScriptParseProcedure
#if ACTIVEPHP_OBJECT_SAFETY
, public IObjectSafety
#endif
{
public:
volatile LONG m_refcount;
@ -227,6 +231,20 @@ public: /* IActiveScriptParseProcedure */
/* [in] */ ULONG ulStartingLineNumber,
/* [in] */ DWORD dwFlags,
/* [out] */ IDispatch **ppdisp);
#if ACTIVEPHP_OBJECT_SAFETY
public: /* IObjectSafety */
STDMETHODIMP GetInterfaceSafetyOptions(
/* [in] */ REFIID riid, // Interface that we want options for
/* [out] */ DWORD *pdwSupportedOptions, // Options meaningful on this interface
/* [out] */ DWORD *pdwEnabledOptions); // current option values on this interface
STDMETHODIMP SetInterfaceSafetyOptions(
/* [in] */ REFIID riid, // Interface to set options for
/* [in] */ DWORD dwOptionSetMask, // Options to change
/* [in] */ DWORD dwEnabledOptions); // New option values
#endif
public:
TPHPScriptingEngine();
~TPHPScriptingEngine();