Bug #75405 [NEW]: Redundant ext infos after optimizing

From: Date: Thu, 19 Oct 2017 04:28:04 +0000
Subject: Bug #75405 [NEW]: Redundant ext infos after optimizing
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211775@lists.php.net to get a copy of this message
From:             laruence
Operating system: 
PHP version:      7.2.0RC4
Package:          *General Issues
Bug Type:         Bug
Bug description:Redundant ext infos after optimizing 

Description:
------------
There are redundant ZEND_EXT_* oplines remained after optimized, this
will make profiler/debugger confused..


Test script:
---------------
<?php
function foo(string $s1, string $s2) {
    $x = ($s1 . $s2);
    $x = 0;
    return $x;
}
?>

runwith  sapi/phpdbg/phpdbg  -e -p*  /tmp/1.php

Expected result:
----------------
function name: foo
L2-6 foo() /tmp/1.php - 0x7f54cbdde2d0 + 5 ops
 L2    #0     EXT_NOP
 L2    #1     RECV                    1                                 
       $s1
 L2    #2     RECV                    2                                 
       $s2
 L3    #3     EXT_STMT
 L5    #4     RETURN                  0
[Script ended normally]

Actual result:
--------------
function name: foo
L2-6 foo() /tmp/1.php - 0x7f79e13de2d0 + 7 ops
 L2    #0     EXT_NOP
 L2    #1     RECV                    1                                 
       $s1
 L2    #2     RECV                    2                                 
       $s2
 L3    #3     EXT_STMT
 L4    #4     EXT_STMT
 L5    #5     EXT_STMT
 L5    #6     RETURN                  0
[Script ended normally]

-- 
Edit bug report at https://bugs.php.net/bug.php?id=75405&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=75405&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=75405&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=75405&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=75405&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=75405&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=75405&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=75405&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=75405&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=75405&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=75405&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=75405&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=75405&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=75405&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75405&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=75405&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=75405&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=75405&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75405&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=75405&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=75405&r=mysqlcfg



Thread (8 messages)

« previous php.bugs (#211775) next »