Req #71701 [NEW]: Misleading indentation warning

From: Date: Wed, 02 Mar 2016 12:13:12 +0000
Subject: Req #71701 [NEW]: Misleading indentation warning
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199560@lists.php.net to get a copy of this message
From:             daniel dot nagy at mirror dot hu
Operating system: 
PHP version:      Irrelevant
Package:          Compile Warning
Bug Type:         Feature/Change Request
Bug description:Misleading indentation warning

Description:
------------
GCC 6 recently introduced a new compiler warning for misleading
indentation in codes. It would be really great if PHP would also include
this warning (maybe disabled by default?).
See more here:
http://developerblog.redhat.com/2016/02/26/gcc-6-wmisleading-indentation-vs-goto-fail/

Test script:
---------------
if (some_condition())
   do_foo();
   do_bar();


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



Thread (2 messages)

« previous php.bugs (#199560) next »