diff options
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/README.ZEND_VM | 4 | ||||
-rw-r--r-- | Zend/zend_vm_gen.php | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Zend/README.ZEND_VM b/Zend/README.ZEND_VM index 7bbb46c1f8..bc71179fe6 100644 --- a/Zend/README.ZEND_VM +++ b/Zend/README.ZEND_VM @@ -96,10 +96,10 @@ different opcode threading model using --with-vm-kind=CALL|SWITCH|GOTO. You can disable opcode specialization using --without-specializer. You can include or exclude old executor together with specialized one using --without-old-executor. At last you can debug executor using original zend_vm_def.h or generated file -zend_vm_execute.h. Debugging with generated file requires --without-lines +zend_vm_execute.h. Debugging with original file requires --with-lines option. By default ZE2 uses the following command to generate executor: -$ php zend_vm_gen.php --with-vm-kind=CALL --without-lines +$ php zend_vm_gen.php --with-vm-kind=CALL Zend Engine II currently includes two executors during the build process, one is the specialized version and the other is the old one non-specialized with diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php index 17b8bddb2a..4e26792efa 100644 --- a/Zend/zend_vm_gen.php +++ b/Zend/zend_vm_gen.php @@ -1002,7 +1002,7 @@ function usage() { "\n --with-vm-kind=CALL|SWITCH|GOTO - select threading model (default is CALL)". "\n --without-specializer - disable executor specialization". "\n --without-old-executor - disable old executor". - "\n --without-lines - disable #line directives". + "\n --with-lines - enable #line directives". "\n\n"); } @@ -1031,9 +1031,9 @@ for ($i = 1; $i < $argc; $i++) { } else if ($argv[$i] == "--without-old-executor") { // Disabling code for old-style executor define("ZEND_VM_OLD_EXECUTOR", 0); - } else if ($argv[$i] == "--without-lines") { - // Disabling debuging using original zend_vm_def.h - define("ZEND_VM_LINES", 0); + } else if ($argv[$i] == "--with-lines") { + // Enabling debuging using original zend_vm_def.h + define("ZEND_VM_LINES", 1); } else if ($argv[$i] == "--help") { usage(); exit(); @@ -1058,8 +1058,8 @@ if (!defined("ZEND_VM_OLD_EXECUTOR")) { define("ZEND_VM_OLD_EXECUTOR", 1); } if (!defined("ZEND_VM_LINES")) { - // Using #line directives to debug with original zend_vm_def.h by default - define("ZEND_VM_LINES", 1); + // Disabling #line directives + define("ZEND_VM_LINES", 0); } gen_vm("zend_vm_def.h", "zend_vm_execute.skl"); |