本文整理汇总了PHP中gen_vm函数的典型用法代码示例。如果您正苦于以下问题:PHP gen_vm函数的具体用法?PHP gen_vm怎么用?PHP gen_vm使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gen_vm函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: usage
usage();
exit;
} else {
echo "ERROR: Invalid option '" . $argv[$i] . "'\n";
usage();
die;
}
}
}
}
}
}
// Using defaults
if (!defined("ZEND_VM_KIND")) {
// Using CALL threading by default
define("ZEND_VM_KIND", ZEND_VM_KIND_CALL);
}
if (!defined("ZEND_VM_SPEC")) {
// Using specialized executor by default
define("ZEND_VM_SPEC", 1);
}
if (!defined("ZEND_VM_OLD_EXECUTOR")) {
// Include old-style executor by default
define("ZEND_VM_OLD_EXECUTOR", 0);
}
if (!defined("ZEND_VM_LINES")) {
// Disabling #line directives
define("ZEND_VM_LINES", 0);
}
gen_vm(__DIR__ . "/zend_vm_def.h", __DIR__ . "/zend_vm_execute.skl");
示例2: define
}
}
}
}
// Using defaults
if (!defined("ZEND_VM_KIND")) {
// Using CALL threading by default
define("ZEND_VM_KIND", ZEND_VM_KIND_CALL);
}
if (!defined("ZEND_VM_SPEC")) {
// Using specialized executor by default
define("ZEND_VM_SPEC", 1);
}
if (!defined("ZEND_VM_OLD_EXECUTOR")) {
// Include old-style executor by default
define("ZEND_VM_OLD_EXECUTOR", 0);
}
if (!defined("ZEND_VM_LINES")) {
// Disabling #line directives
define("ZEND_VM_LINES", 0);
}
if (!defined("ZEND_OP_TYPE_DEFINES")) {
// Disabling op type #defines
define("ZEND_OP_TYPE_DEFINES", 0);
}
if (!defined("ZEND_VM_ALIGNMENT")) {
// Disabling goto op alignment
define("ZEND_VM_ALIGNMENT", 0);
}
gen_vm("zend_vm_def.h", "zend_vm_execute.skl");