Community
Participate
Working Groups
Create a new file, and paste in the following: <? class Test { /** * @deprecated */ protected $arr; public function go() { $this->arr[0] = 1; $a = 1; if ($a == 1) { $this->arr[$a] = 3; } for ($i = 0; $i < 10; $i++) { $this->arr[$i] = 2; } } } ?> In the editor, arr[0] and arr[$a] are crossed out, but not arr[$i]. -- Configuration Details -- Product: Eclipse 1.3.0.20100526-1935 (org.eclipse.epp.package.jee.product) Installed Features: org.eclipse.platform 3.6.0.v20100527-9gF78GpqFt6trOGhCMC-p4sxjlLvz0FU_i PHP Development Tools (PDT) SDK Feature 2.2.0.v20100519-1400-53-84QAN2IGRoLXQN3T6XXRLa9Od org.eclipse.php.sdk.feature.group
Created attachment 171803 [details] Fix - ForStatement
Comment on attachment 171803 [details] Fix - ForStatement Statement super contractor must initialize with start position and end position
fixed, thanks for the contribution!
Created attachment 171816 [details] Patch - AST unitests Fixed unitests expected behavior
committed to head, thanks!
Retested at PDT-2.2.0.v20100616 over Windows XP and Mac OS X 10.6.2 - the same behavior - only three of deprecated variables are crossed out - the for one at for loop is not - see attached. No error log are recorded to this behavior Reopened by Teodor Kirkov teodor.k@zend.com
Created attachment 172055 [details] Not crossed deprecated class variable
fixed
[Petyo Tanchev] Tested on 2.2.0 from 13.08.2010 All deprecated variables are crossed out.