#22736 [NEW]: change of operator precedence
From: soletan at toxa dot de
Operating system: Linux
PHP version: 4.3.1
PHP Bug Type: Feature/Change Request
Bug description: change of operator precedence
Hi,
maybe this can't be done because of scripts relying on current operator
precedence, but for the statement
$a & ~$b != 0
your current precedence rules would do
$a & ~( $b != 0 )
which is quite unusual. Traditional logics (used by Frege and others)
would first compute the negation, it is the most strongly bound operator.
For instance, having
~p ^ q
as a structured expression the negation would precede any other operator p
is argument of, or: p is not argument of the conjunction, but the
negation's result is.
Maybe I'm still false, but that's what I have expected to write logical
calculations like for years.
Best Regards,
Thomas Urban
--
Edit bug report at http://bugs.php.net/?id=22736&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22736&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22736&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22736&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22736&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22736&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22736&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22736&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22736&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22736&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22736&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22736&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22736&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22736&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22736&r=gnused
Thread (3 messages)
- soletan at toxa dot de