From a3007b9915a0ca3eec024b714cecc609e6356e17 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Mon, 12 Jan 2015 18:40:12 +0100 Subject: fixed compiling in ZTS environments (reported in issue #57) --- include/script.h | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'include/script.h') diff --git a/include/script.h b/include/script.h index a9c2921..af68a59 100644 --- a/include/script.h +++ b/include/script.h @@ -20,6 +20,11 @@ struct _zend_op_array; */ namespace Php { +/** + * Forward declarations + */ +class Opcodes; + /** * Class definition */ @@ -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 -- cgit v1.2.3