mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Allow calling zend_vm_gen from everywhere
Before one could only call it with cwd=Zend.
This commit is contained in:
parent
2c5ecb4fea
commit
ececcbce0e
1 changed files with 4 additions and 4 deletions
|
@ -1182,7 +1182,7 @@ function gen_vm($def, $skel) {
|
||||||
|
|
||||||
// Generate opcode #defines (zend_vm_opcodes.h)
|
// Generate opcode #defines (zend_vm_opcodes.h)
|
||||||
$code_len = strlen((string)$max_opcode);
|
$code_len = strlen((string)$max_opcode);
|
||||||
$f = fopen("zend_vm_opcodes.h", "w+") or die("ERROR: Cannot create zend_vm_opcodes.h\n");
|
$f = fopen(__DIR__ . "/zend_vm_opcodes.h", "w+") or die("ERROR: Cannot create zend_vm_opcodes.h\n");
|
||||||
|
|
||||||
// Insert header
|
// Insert header
|
||||||
out($f, $GLOBALS['header_text']);
|
out($f, $GLOBALS['header_text']);
|
||||||
|
@ -1196,8 +1196,8 @@ function gen_vm($def, $skel) {
|
||||||
echo "zend_vm_opcodes.h generated successfully.\n";
|
echo "zend_vm_opcodes.h generated successfully.\n";
|
||||||
|
|
||||||
// Generate zend_vm_execute.h
|
// Generate zend_vm_execute.h
|
||||||
$f = fopen("zend_vm_execute.h", "w+") or die("ERROR: Cannot create zend_vm_execute.h\n");
|
$f = fopen(__DIR__ . "/zend_vm_execute.h", "w+") or die("ERROR: Cannot create zend_vm_execute.h\n");
|
||||||
$executor_file = realpath("zend_vm_execute.h");
|
$executor_file = realpath(__DIR__ . "/zend_vm_execute.h");
|
||||||
|
|
||||||
// Insert header
|
// Insert header
|
||||||
out($f, $GLOBALS['header_text']);
|
out($f, $GLOBALS['header_text']);
|
||||||
|
@ -1440,6 +1440,6 @@ if (!defined("ZEND_VM_LINES")) {
|
||||||
define("ZEND_VM_LINES", 0);
|
define("ZEND_VM_LINES", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
gen_vm("zend_vm_def.h", "zend_vm_execute.skl");
|
gen_vm(__DIR__ . "/zend_vm_def.h", __DIR__ . "/zend_vm_execute.skl");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue