com php-src: Fixed build...: Zend/zend_vm_gen.php Zend/ zend_vm_opcodes.h
| From: | Bob Weinand | Date: | Sat, 21 Dec 2013 20:29:08 +0000 |
| Subject: | com php-src: Fixed build...: Zend/zend_vm_gen.php Zend/ zend_vm_opcodes.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75378@lists.php.net to get a copy of this message | ||
Commit: 7894e397d83a1ecaddd06732171d5bf28c2265fb
Author: Bob Weinand <bobwei9@hotmail.com> Sat, 21 Dec 2013 21:29:08 +0100
Parents: 50d50c2f047dde3c2e3bf48490a1aa230e71ba16
Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7894e397d83a1ecaddd06732171d5bf28c2265fb
Log:
Fixed build...
Changed paths:
M Zend/zend_vm_gen.php
M Zend/zend_vm_opcodes.h
Diff:
diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php
index 2f7c3cf..87a9b3c 100644
--- a/Zend/zend_vm_gen.php
+++ b/Zend/zend_vm_gen.php
@@ -1209,7 +1209,7 @@ function gen_vm($def, $skel) {
fputs($f,"#define $op $code\n");
}
- fputs($f,"\nconst char *zend_vm_opcodes_map[] = {\n");
+ fputs($f,"\nstatic const char *zend_vm_opcodes_map[] = {\n");
for ($i = 0; $i <= $max_opcode; $i++) {
fputs($f,"\t".(isset($opcodes[$i]["op"])?'"'.$opcodes[$i]["op"].'"':"NULL").",\n");
}
diff --git a/Zend/zend_vm_opcodes.h b/Zend/zend_vm_opcodes..h
index e0bc2f5..51b513a 100644
--- a/Zend/zend_vm_opcodes.h
+++ b/Zend/zend_vm_opcodes.h
@@ -163,7 +163,7 @@
#define ZEND_QM_ASSIGN_VAR 157
#define ZEND_JMP_SET_VAR 158
-const char *zend_vm_opcodes_map[] = {
+static const char *zend_vm_opcodes_map[] = {
"ZEND_NOP",
"ZEND_ADD",
"ZEND_SUB",