Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
I miss the good old days, when things were simple ... #523
Browse files Browse the repository at this point in the history
  • Loading branch information
krakjoe committed Dec 2, 2015
1 parent 7a86467 commit c4fe122
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions php_pthreads.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static inline int php_pthreads_recv(ZEND_OPCODE_HANDLER_ARGS) {

#if ZEND_USE_ABS_CONST_ADDR
if (EX(opline)->result_type == IS_CONST) {
var = EX(opline)->result.var;
var = (zval*) EX(opline)->result.var;
} else var = EX_VAR(EX(opline)->result.num);
#else
var = EX_VAR(EX(opline)->result.num);
Expand All @@ -225,14 +225,14 @@ static inline int php_pthreads_verify_return_type(ZEND_OPCODE_HANDLER_ARGS) {
zend_execute_data *execute_data = EG(current_execute_data);
zval *var = NULL;

if (EX(opline)->op1_type == IS_UNUSED) {
if (EX(opline)->op1_type == IS_UNUSED) {
return ZEND_USER_OPCODE_DISPATCH;
}

#if ZEND_USE_ABS_CONST_ADDR
if (EX(opline)->op1_type == IS_CONST) {
var = EX(opline)->op1.var;
} else EX_VAR(EX(opline)->op1.num);
if (EX(opline)->op1_type & IS_CONST) {
var = (zval*) EX(opline)->op1.var;
} else var = EX_VAR(EX(opline)->op1.num);
#else
var = EX_VAR(EX(opline)->op1.num);
#endif
Expand Down

0 comments on commit c4fe122

Please sign in to comment.