summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/tests/assert/expect_empty_stmt_bug.phpt2
-rw-r--r--Zend/zend_opcode.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zend/tests/assert/expect_empty_stmt_bug.phpt b/Zend/tests/assert/expect_empty_stmt_bug.phpt
index f5dcff3ba5..853a5ccaf3 100644
--- a/Zend/tests/assert/expect_empty_stmt_bug.phpt
+++ b/Zend/tests/assert/expect_empty_stmt_bug.phpt
@@ -3,7 +3,7 @@ Empty statement in assert() shouldn't segfault
--FILE--
<?php
-assert((function () { return true;; })());
+assert((function () { return true; })());
echo "ok";
?>
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index 90fc211e56..f750403620 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -53,7 +53,7 @@ void init_op_array(zend_op_array *op_array, zend_uchar type, int initial_ops_siz
op_array->refcount = (uint32_t *) emalloc(sizeof(uint32_t));
*op_array->refcount = 1;
op_array->last = 0;
- op_array->opcodes = emalloc(initial_ops_size * sizeof(zend_op));;
+ op_array->opcodes = emalloc(initial_ops_size * sizeof(zend_op));
op_array->last_var = 0;
op_array->vars = NULL;