|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-05-02 20:23 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2014-05-02 20:23 UTC] requinix@php.net
[2014-05-03 01:13 UTC] anon at anon dot anon
[2014-05-03 09:59 UTC] ianbytchek at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 23:00:02 2026 UTC |
Description: ------------ This doesn't work. for ($i = 0; $i < 2 ^ 10; $i++) { echo $i; } This does. for ($i = 0; $i < (2 ^ 10); $i++) { echo $i; } Is it actually a bug or is that how op precedence is expected to work here? Test script: --------------- for ($i = 0; $i < 2 ^ 10; $i++) { echo $i; }