Bug #68712 [NEW]: identical code

From: Date: Fri, 02 Jan 2015 07:28:37 +0000
Subject: Bug #68712 [NEW]: identical code
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189589@lists.php.net to get a copy of this message
From: bugreports at internot dot info Operating system: Linux Ubuntu 14.04 PHP version: master-Git-2015-01-02 (Git) Package: GD related Bug Type: Bug Bug description:identical code Description: ------------ Hi, in /ext/gd/libgd/gd_interpolation.c: 1539 if (m >= src_h - 2) { 1540 src_offset_x[13] = n; 1541 src_offset_y[13] = m; 1542 } else { 1543 src_offset_x[13] = n; 1544 src_offset_y[13] = m; 1545 } and 1946 if (m < 1) { 1947 src_offset_x[1] = n; 1948 src_offset_y[1] = m; 1949 } else { 1950 src_offset_x[1] = n; 1951 src_offset_y[1] = m ; 1952 } In each, each possiblity is the same. Is this intended? -- Edit bug report at https://bugs.php.net/bug.php?id=68712&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68712&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68712&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68712&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68712&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68712&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68712&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68712&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68712&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68712&r=support Expected behavior: https://bugs.php.net/fix.php?id=68712&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68712&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68712&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68712&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68712&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68712&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68712&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68712&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68712&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68712&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68712&r=mysqlcfg

« previous php.bugs (#189589) next »