Skip to content

Conversation

dstogov
Copy link
Member

@dstogov dstogov commented Nov 11, 2015

No description provided.

!zend_is_def_range(opline - 1, opline->op2_type, opline->op2.var)) {

if (opline->opcode == ZEND_OP_DATA) {
if (!zend_is_def_range(opline - 2, opline->op1_type, opline->op1.var)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be op2_type, op2.var.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks.

On Thu, Nov 12, 2015 at 8:50 PM, Nikita Popov notifications@github.com
wrote:

In Zend/zend_compile.c
#1634 (comment):

  •              opline->opcode == ZEND_ROPE_ADD ||
    
  •              opline->opcode == ZEND_ROPE_END ||
    
  •              opline->opcode == ZEND_END_SILENCE ||
    
  •              opline->opcode == ZEND_FETCH_LIST ||
    
  •              opline->opcode == ZEND_VERIFY_RETURN_TYPE) {
    
  •       /\* these opcodes are handled separately */
    
  •   } else {
    
  •       zend_find_live_range(opline, opline->op1_type, opline->op1.var);
    
  •   }
    
  • }
  • if ((opline->op2_type & (IS_VAR|IS_TMP_VAR)) &&
  •   !zend_is_def_range(opline - 1, opline->op2_type, opline->op2.var)) {
    
  •   if (opline->opcode == ZEND_OP_DATA) {
    
  •       if (!zend_is_def_range(opline - 2, opline->op1_type, opline->op1.var)) {
    

Should be op2_type, op2.var.


Reply to this email directly or view it on GitHub
https://github.com/php/php-src/pull/1634/files#r44689485.

@dstogov
Copy link
Member Author

dstogov commented Nov 13, 2015

@dstogov dstogov closed this Nov 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants