summaryrefslogtreecommitdiff
path: root/include/script.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-12 18:40:12 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-12 18:40:12 +0100
commita3007b9915a0ca3eec024b714cecc609e6356e17 (patch)
treee643f7ae433dbf12e6e1828950d694b855e4ec0a /include/script.h
parent74388e2735e806837cd31052c513451ec3942c0a (diff)
fixed compiling in ZTS environments (reported in issue #57)
Diffstat (limited to 'include/script.h')
-rw-r--r--include/script.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/include/script.h b/include/script.h
index a9c2921..af68a59 100644
--- a/include/script.h
+++ b/include/script.h
@@ -21,6 +21,11 @@ struct _zend_op_array;
namespace Php {
/**
+ * Forward declarations
+ */
+class Opcodes;
+
+/**
* Class definition
*/
class Script
@@ -62,33 +67,27 @@ public:
/**
* Destructor
*/
- virtual ~Script() {}
+ virtual ~Script();
/**
* Is the script a valid PHP script without syntax errors?
* @return bool
*/
- bool valid() const
- {
- return _opcodes.valid();
- }
+ bool valid() const;
/**
* Execute the script
* The return value of the script is returned
* @return Value
*/
- Value execute() const
- {
- return _opcodes.execute();
- }
+ Value execute() const;
private:
/**
* The opcodes
* @var Opcodes
*/
- Opcodes _opcodes;
+ Opcodes *_opcodes;
/**
* Helper function to compile the source code