Skip to content

Commit 9430e81

Browse files
committed
Revert "Revert unintended whitespace changes"
This reverts commit bc3eda5.
1 parent 9bd07d6 commit 9430e81

File tree

6 files changed

+21
-20
lines changed

6 files changed

+21
-20
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2318,7 +2318,7 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_functio
23182318
}
23192319

23202320
if (reg_function->common.arg_info &&
2321-
(reg_function->common.fn_flags & (ZEND_ACC_HAS_RETURN_TYPE|ZEND_ACC_HAS_TYPE_HINTS))) {
2321+
(reg_function->common.fn_flags & (ZEND_ACC_HAS_RETURN_TYPE|ZEND_ACC_HAS_TYPE_HINTS))) {
23222322
/* convert "const char*" class type names into "zend_string*" */
23232323
uint32_t i;
23242324
uint32_t num_args = reg_function->common.num_args + 1;

Zend/zend_API.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ typedef struct _zend_fcall_info_cache {
213213
class_container.__set = handle_propset; \
214214
class_container.__unset = handle_propunset; \
215215
class_container.__isset = handle_propisset; \
216-
class_container.__debugInfo = NULL; \
216+
class_container.__debugInfo = NULL; \
217217
class_container.__compareTo = NULL; \
218218
class_container.__equals = NULL; \
219219
class_container.serialize_func = NULL; \

Zend/zend_compile.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ static void zend_mark_function_as_generator() /* {{{ */
12471247

12481248
if (ZEND_TYPE_CODE(return_info.type) != IS_ITERABLE) {
12491249
const char *msg = "Generators may only declare a return type of Generator, Iterator, Traversable, or iterable, %s is not permitted";
1250-
1250+
12511251
if (!ZEND_TYPE_IS_CLASS(return_info.type)) {
12521252
zend_error_noreturn(E_COMPILE_ERROR, msg, zend_get_type_by_const(ZEND_TYPE_CODE(return_info.type)));
12531253
}
@@ -2161,7 +2161,7 @@ static void zend_emit_tick(void) /* {{{ */
21612161
if (CG(active_op_array)->last && CG(active_op_array)->opcodes[CG(active_op_array)->last - 1].opcode == ZEND_TICKS) {
21622162
return;
21632163
}
2164-
2164+
21652165
opline = get_next_op(CG(active_op_array));
21662166

21672167
opline->opcode = ZEND_TICKS;
@@ -2592,7 +2592,7 @@ static zend_op *zend_compile_simple_var_no_cv(znode *result, zend_ast *ast, uint
25922592
opline = zend_emit_op(result, ZEND_FETCH_R, &name_node, NULL);
25932593
}
25942594

2595-
if (name_node.op_type == IS_CONST &&
2595+
if (name_node.op_type == IS_CONST &&
25962596
zend_is_auto_global(Z_STR(name_node.u.constant))) {
25972597

25982598
opline->extended_value = ZEND_FETCH_GLOBAL;
@@ -5036,7 +5036,7 @@ void zend_compile_switch(zend_ast *ast) /* {{{ */
50365036
if (jumptable) {
50375037
zval *cond_zv = zend_ast_get_zval(cond_ast);
50385038
zval jmp_target;
5039-
ZVAL_LONG(&jmp_target, get_next_op_number(CG(active_op_array)));
5039+
ZVAL_LONG(&jmp_target, get_next_op_number(CG(active_op_array)));
50405040

50415041
ZEND_ASSERT(Z_TYPE_P(cond_zv) == jumptable_type);
50425042
if (Z_TYPE_P(cond_zv) == IS_LONG) {
@@ -5212,7 +5212,7 @@ void zend_compile_try(zend_ast *ast) /* {{{ */
52125212
if (finally_ast) {
52135213
zend_loop_var discard_exception;
52145214
uint32_t opnum_jmp = get_next_op_number(CG(active_op_array)) + 1;
5215-
5215+
52165216
/* Pop FAST_CALL from unwind stack */
52175217
zend_stack_del_top(&CG(loop_var_stack));
52185218

@@ -5466,7 +5466,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
54665466
uint32_t i;
54675467
zend_op_array *op_array = CG(active_op_array);
54685468
zend_arg_info *arg_infos;
5469-
5469+
54705470
if (return_type_ast) {
54715471
zend_bool allow_null = 0;
54725472

@@ -5610,7 +5610,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
56105610
"with a float type can only be float, integer, or NULL");
56115611
}
56125612
break;
5613-
5613+
56145614
case IS_ITERABLE:
56155615
if (Z_TYPE(default_node.u.constant) != IS_ARRAY) {
56165616
zend_error_noreturn(E_COMPILE_ERROR, "Default value for parameters "
@@ -5622,7 +5622,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
56225622
zend_error_noreturn(E_COMPILE_ERROR, "Default value for parameters "
56235623
"with an object type can only be NULL");
56245624
break;
5625-
5625+
56265626
default:
56275627
if (!ZEND_SAME_FAKE_TYPE(ZEND_TYPE_CODE(arg_info->type), Z_TYPE(default_node.u.constant))) {
56285628
zend_error_noreturn(E_COMPILE_ERROR, "Default value for parameters "
@@ -5651,7 +5651,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
56515651
if (opline->opcode != ZEND_RECV_INIT) {
56525652
opline->op2.num = -1;
56535653
}
5654-
}
5654+
}
56555655
}
56565656

56575657
/* These are assigned at the end to avoid uninitialized memory in case of an error */
@@ -7929,7 +7929,7 @@ static void zend_compile_encaps_list(znode *result, zend_ast *ast) /* {{{ */
79297929
i = ((j * sizeof(zend_string*)) + (sizeof(zval) - 1)) / sizeof(zval);
79307930
while (i > 1) {
79317931
get_temporary_variable(CG(active_op_array));
7932-
i--;
7932+
i--;
79337933
}
79347934

79357935
zend_end_live_range(CG(active_op_array), range, opline - CG(active_op_array)->opcodes,

Zend/zend_object_handlers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ZEND_API void rebuild_object_properties(zend_object *zobj) /* {{{ */
7777
HT_FLAGS(zobj->properties) |= HASH_FLAG_HAS_EMPTY_IND;
7878
}
7979

80-
_zend_hash_append_ind(zobj->properties, prop_info->name,
80+
_zend_hash_append_ind(zobj->properties, prop_info->name,
8181
OBJ_PROP(zobj, prop_info->offset));
8282
}
8383
} ZEND_HASH_FOREACH_END();
@@ -684,7 +684,7 @@ ZEND_API zval *zend_std_read_property(zval *object, zval *member, int type, void
684684
*guard |= IN_ISSET;
685685
zend_std_call_issetter(&tmp_object, member, &tmp_result);
686686
*guard &= ~IN_ISSET;
687-
687+
688688
if (!zend_is_true(&tmp_result)) {
689689
retval = &EG(uninitialized_zval);
690690
zval_ptr_dtor(&tmp_object);

Zend/zend_operators.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,6 +1971,7 @@ static void ZEND_FASTCALL convert_compare_result_to_long(zval *result) /* {{{ */
19711971

19721972
ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2) /* {{{ */
19731973
{
1974+
19741975
int ret;
19751976
int converted = 0;
19761977
zval op1_copy, op2_copy;
@@ -3155,7 +3156,7 @@ ZEND_API zend_uchar ZEND_FASTCALL _is_numeric_string_ex(const char *str, size_t
31553156
}
31563157
/* }}} */
31573158

3158-
/*
3159+
/*
31593160
* String matching - Sunday algorithm
31603161
* http://www.iti.fh-flensburg.de/lang/algorithmen/pattern/sundayen.htm
31613162
*/
@@ -3239,7 +3240,7 @@ ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const
32393240
if (i == needle_len) {
32403241
return (const char *)p;
32413242
}
3242-
3243+
32433244
if (UNEXPECTED(p == haystack)) {
32443245
return NULL;
32453246
}

Zend/zend_vm_def.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ ZEND_VM_INLINE_HELPER(zend_binary_assign_op_helper, VAR|UNUSED|THIS|CV, CONST|TM
984984
ZEND_VM_DISPATCH_TO_HELPER(zend_binary_assign_op_dim_helper, binary_op, binary_op);
985985
}
986986
# endif
987-
987+
988988
ZEND_VM_DISPATCH_TO_HELPER(zend_binary_assign_op_obj_helper, binary_op, binary_op);
989989
#endif
990990
}
@@ -2492,7 +2492,7 @@ ZEND_VM_HOT_NOCONST_HANDLER(43, ZEND_JMPZ, CONST|TMPVAR|CV, JMP_ADDR)
24922492
zval *val;
24932493

24942494
val = GET_OP1_ZVAL_PTR_UNDEF(BP_VAR_R);
2495-
2495+
24962496
if (Z_TYPE_INFO_P(val) == IS_TRUE) {
24972497
ZEND_VM_NEXT_OPCODE();
24982498
} else if (EXPECTED(Z_TYPE_INFO_P(val) <= IS_TRUE)) {
@@ -3222,7 +3222,7 @@ ZEND_VM_HANDLER(113, ZEND_INIT_STATIC_METHOD_CALL, UNUSED|CLASS_FETCH|CONST|VAR,
32223222

32233223
if (OP1_TYPE == IS_UNUSED) {
32243224
/* previous opcode is ZEND_FETCH_CLASS */
3225-
if ((opline->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_PARENT ||
3225+
if ((opline->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_PARENT ||
32263226
(opline->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF) {
32273227
if (Z_TYPE(EX(This)) == IS_OBJECT) {
32283228
ce = Z_OBJCE(EX(This));
@@ -3675,7 +3675,7 @@ ZEND_VM_HOT_HANDLER(60, ZEND_DO_FCALL, ANY, ANY, SPEC(RETVAL))
36753675
} else {
36763676
zend_execute_internal(call, ret);
36773677
}
3678-
3678+
36793679
#if ZEND_DEBUG
36803680
if (!EG(exception) && call->func) {
36813681
ZEND_ASSERT(!(call->func->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) ||

0 commit comments

Comments
 (0)