summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_prompt.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-03-16 17:10:26 +0800
committerXinchen Hui <laruence@php.net>2015-03-16 17:10:26 +0800
commit50e40334750b6e5bbccc2208ed3b470aac5673f2 (patch)
treef380fd04c0abdbc9b1f806f1fcbc59eea8df9453 /sapi/phpdbg/phpdbg_prompt.c
parent8247f49fb253b085102db32e6bac3c2f6d65ad80 (diff)
downloadphp-git-50e40334750b6e5bbccc2208ed3b470aac5673f2.tar.gz
Let phpdbg refused to be compiled with no CALL zend vm kind
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r--sapi/phpdbg/phpdbg_prompt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c
index ec6890d8e6..dec11f280b 100644
--- a/sapi/phpdbg/phpdbg_prompt.c
+++ b/sapi/phpdbg/phpdbg_prompt.c
@@ -42,6 +42,10 @@
#include "phpdbg_wait.h"
#include "phpdbg_eol.h"
+#if ZEND_VM_KIND != ZEND_VM_KIND_CALL
+#error "phpdbg can only be built with CALL zend vm kind"
+#endif
+
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
extern int phpdbg_startup_run;