ZEND_APIifying zendparse()
| From: | Sara Golemon | Date: | Thu, 22 Jan 2015 09:28:57 +0000 |
| Subject: | ZEND_APIifying zendparse() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-80963@lists.php.net to get a copy of this message | ||
http://github.com/sgolemon/astkit (See the
README.md)
I'm using zendparse() to generate an AST but *not* compile it to
bytecode. In order to get this extension building, I have to patch
php-src to export the zendparse symbol. Anyone object to me pushing
that change?
diff --git a/Zend/zend_globals_macros.h b/Zend/zend_globals_macros.h
index b8fb763..190905f 100644
--- a/Zend/zend_globals_macros.h
+++ b/Zend/zend_globals_macros.h
@@ -36,7 +36,7 @@ BEGIN_EXTERN_C()
# define CG(v) (compiler_globals.v)
extern ZEND_API struct _zend_compiler_globals compiler_globals;
#endif
-int zendparse(void);
+ZEND_API int zendparse(void);
/* Executor */
-Sara