Bug #18214: REQUEST: WARNING ON ASSIGNMENT IN IF EXPRESSION
| From: | djanix at hotmail dot com | Date: | Sun, 07 Jul 2002 21:38:34 +0000 |
| Subject: | Bug #18214: REQUEST: WARNING ON ASSIGNMENT IN IF EXPRESSION | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-13426@lists.php.net to get a copy of this message | ||
From: djanix@hotmail.com
Operating system: any
PHP version: 4CVS-2002-07-07
PHP Bug Type: Feature/Change Request
Bug description: REQUEST: WARNING ON ASSIGNMENT IN IF EXPRESSION
just a quick feature request...
how about a warning for assignment inside of an expression, like most c
compilers will generate...
" if ( $a = false ) { "
would generate a warning... if u had the warning enabled of course....
i'm surprised it doesn't already do that...
-benjamin+
--
Edit bug report at http://bugs.php.net/?id=18214&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18214&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18214&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18214&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18214&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18214&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18214&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18214&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18214&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18214&r=globals