Details

      Description

      Hi,
      a few days ago the stable version of PHP 5.4 was released. If would be great if Aptana would support the new features like the new short array syntax or traits. Currently Aptana says the code is invalid at this point.

      Thanks and greetings
      Leo

      1. 5-4.php
        1 kB
        Leo Unglaub
      1. _1334366357925.png
        42 kB

        Issue Links

          Issues in Epic

          There are no issues in this epic.

            Activity

            No builds found.
            Leo Unglaub created issue -
            Shalom Gibly made changes -
            Field Original Value New Value
            Labels 5.4 php php5.4
            Assignee Ingo Muschenetz [ ingo ] Shalom Gibly [ sgibly ]
            Affects Version/s Aptana Studio 3.1 [ 11505 ]
            Component/s php [ 10709 ]
            Hide
            Leo Unglaub added a comment -

            Do you need some example PHP 5.4 scripts for testing the new functions? If it would help you i would like to write them for you.

            Show
            Leo Unglaub added a comment - Do you need some example PHP 5.4 scripts for testing the new functions? If it would help you i would like to write them for you.
            Hide
            Marat A. Denenberg added a comment -

            Same here, this would be a great update. I have been forced to turn off syntax checking so that I can use the new features. Thanks!

            Show
            Marat A. Denenberg added a comment - Same here, this would be a great update. I have been forced to turn off syntax checking so that I can use the new features. Thanks!
            Hide
            Shalom Gibly added a comment -

            @Leo, Yes. Please post any test scripts you have into this ticket.
            Thanks!

            Show
            Shalom Gibly added a comment - @Leo, Yes. Please post any test scripts you have into this ticket. Thanks!
            Shalom Gibly made changes -
            Issue Type Improvement [ 4 ] Epic [ 6 ]
            Shalom Gibly made changes -
            Epic/Theme APSTUD-4447
            Hide
            Marat A. Denenberg added a comment -

            I'm not Leo, but I can help =)

            First and foremost, is the addition of the short array syntax:

            <?php

            $test = ['key' => 'value'];
            // is the same as
            $test = array('key' => 'value');

            ?>

            Second, is the addition of traits. This addition is too extensive to post, here are the details:

            http://us3.php.net/manual/en/language.oop5.traits.php

            Finally, there are a ton of minor changes. Here is a list from the Changelog (http://php.net/ChangeLog-5.php):

            Added binary numbers format (0b001010).
            Added support for Class::

            {expr}

            () syntax.
            Added closure $this support back.
            Added array dereferencing support.
            Added callable typehint.
            Added indirect method call through array.
            Added class member access on instantiation (e.g. (new foo)->bar()) support.
            Implemented closure rebinding as parameter to bindTo.

            There might be more, but that's all I could see at first glance.

            Thank you!

            Show
            Marat A. Denenberg added a comment - I'm not Leo, but I can help =) First and foremost, is the addition of the short array syntax: <?php $test = ['key' => 'value'] ; // is the same as $test = array('key' => 'value'); ?> Second, is the addition of traits. This addition is too extensive to post, here are the details: http://us3.php.net/manual/en/language.oop5.traits.php Finally, there are a ton of minor changes. Here is a list from the Changelog ( http://php.net/ChangeLog-5.php): Added binary numbers format (0b001010). Added support for Class:: {expr} () syntax. Added closure $this support back. Added array dereferencing support. Added callable typehint. Added indirect method call through array. Added class member access on instantiation (e.g. (new foo)->bar()) support. Implemented closure rebinding as parameter to bindTo. There might be more, but that's all I could see at first glance. Thank you!
            Hide
            Shalom Gibly added a comment -

            Thanks Marat!
            I've created a bunch of sub-tasks for this ticket, so we can estimate it better and push it as soon as we can.

            Show
            Shalom Gibly added a comment - Thanks Marat! I've created a bunch of sub-tasks for this ticket, so we can estimate it better and push it as soon as we can.
            Hide
            Leo Unglaub added a comment -

            Hi, sorry i was very busy the last couple of days. So here is the script for you.
            Greetings
            Leo

            Show
            Leo Unglaub added a comment - Hi, sorry i was very busy the last couple of days. So here is the script for you. Greetings Leo
            Leo Unglaub made changes -
            Attachment 5-4.php [ 27056 ]
            Hide
            Leo Unglaub added a comment -

            The test result

            Show
            Leo Unglaub added a comment - The test result
            Leo Unglaub made changes -
            Attachment _1334366357925.png [ 27058 ]
            Hide
            Shalom Gibly added a comment -

            Thanks Leo!
            Hope to have an update on that asap.

            Show
            Shalom Gibly added a comment - Thanks Leo! Hope to have an update on that asap.
            Ingo Muschenetz made changes -
            Fix Version/s Backlog [ 13534 ]
            Hide
            Leo Unglaub added a comment -

            Hi, is there an update for that issue? I have so much PHP 5.4 code currently witch is killing aptana all the time so for that i am currently using a trail version of PHPStorm witch is expiring in a feew days g

            Show
            Leo Unglaub added a comment - Hi, is there an update for that issue? I have so much PHP 5.4 code currently witch is killing aptana all the time so for that i am currently using a trail version of PHPStorm witch is expiring in a feew days g
            Hide
            Shalom Gibly added a comment -

            Hi Leo,
            We started working on that (see https://github.com/aptana/studio3-php/tree/php54) and got to task #5 (the code-formatter).
            Unfortunately, we had to push it back a little due to time constraints, but I want this ready as much as you do, so hope to get back on it very soon.

            Show
            Shalom Gibly added a comment - Hi Leo, We started working on that (see https://github.com/aptana/studio3-php/tree/php54 ) and got to task #5 (the code-formatter). Unfortunately, we had to push it back a little due to time constraints, but I want this ready as much as you do, so hope to get back on it very soon.
            Ingo Muschenetz made changes -
            Fix Version/s 2012 Sprint 20 [ 13463 ]
            Fix Version/s Backlog [ 13534 ]
            Ingo Muschenetz made changes -
            Fix Version/s Aptana Studio 3.3.0 [ 13432 ]
            Nikolai Derzhak made changes -
            Workflow Appc-Jira [ 102414 ]  PyDev migration copy of Appc-Jira [ 112781 ]
            Nikolai Derzhak made changes -
            Workflow  PyDev migration copy of Appc-Jira [ 112781 ] Appc-Jira [ 119753 ]
            Ingo Muschenetz made changes -
            Fix Version/s Aptana Studio 3.4.0 [ 13433 ]
            Fix Version/s Aptana Studio 3.3.0 [ 13432 ]
            Fix Version/s 2012 Sprint 20 [ 13463 ]
            Shalom Gibly made changes -
            Shalom Gibly made changes -
            Shalom Gibly made changes -
            Ingo Muschenetz made changes -
            Labels 5.4 php php5.4 5.4 php php5.4 rock_solid
            Ingo Muschenetz made changes -
            Rank Ranked higher
            Ingo Muschenetz made changes -
            Rank Ranked higher
            Ingo Muschenetz made changes -
            Story Points 0
            Ingo Muschenetz made changes -
            Rank Ranked lower
            Michael Xia (Inactive) made changes -
            Fix Version/s Aptana Studio 3.5.0 [ 14881 ]
            Fix Version/s Aptana Studio 3.4.0 [ 13433 ]
            Michael Xia (Inactive) made changes -
            Planned Start 2013-04-07 (set to new fixed version's start date)
            Planned End 2013-06-28 (set to new fixed version's start date)
            Shalom Gibly made changes -
            Hide
            Nate added a comment -

            Hi, has been quite some time since the last comment on this and it seems it still isn't finished.
            Do you have a guideline or quick-start guide on how I can contribute to the php 5.4 support?

            Show
            Nate added a comment - Hi, has been quite some time since the last comment on this and it seems it still isn't finished. Do you have a guideline or quick-start guide on how I can contribute to the php 5.4 support?
            Ingo Muschenetz made changes -
            Fix Version/s Backlog [ 13534 ]
            Fix Version/s Aptana Studio 3.5.0 [ 14881 ]
            Shalom Gibly made changes -
            Fix Version/s Aptana Studio 3.4.2 [ 15514 ]
            Fix Version/s Backlog [ 13534 ]
            Shalom Gibly made changes -
            Fix Version/s 2013 Sprint 11 [ 15432 ]
            Shalom Gibly made changes -
            Planned Start 2013-04-07 2013-05-21 (set to new fixed version's start date)
            Planned End 2013-06-28 2013-06-03 (set to new fixed version's start date)
            Shalom Gibly made changes -
            Fix Version/s 2013 Sprint 11 [ 15432 ]
            Hide
            Shalom Gibly added a comment -

            Resolving. All subtasks completed and pushed into the development branch (e.g. nightly).

            Show
            Shalom Gibly added a comment - Resolving. All subtasks completed and pushed into the development branch (e.g. nightly).
            Shalom Gibly made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            Leo Unglaub added a comment -

            Yeah, that is awesome !
            Big Thanks!

            Show
            Leo Unglaub added a comment - Yeah, that is awesome ! Big Thanks!
            Michael Xia (Inactive) made changes -
            Fix Version/s Aptana Studio 3.5.0 [ 14881 ]
            Michael Xia (Inactive) made changes -
            Planned Start 2013-05-21 2013-04-08 (set to new fixed version's start date)
            Planned End 2013-06-03 2013-12-18 (set to new fixed version's start date)
            Michael Xia (Inactive) made changes -
            Fix Version/s Aptana Studio 3.4.2 [ 15514 ]
            Hide
            Kowalski added a comment -

            hello!
            I have development branch:
            "
            Aptana Studio 3, build: 3.5.0.201308301825
            (c) Copyright 2005-2013 by Appcelerator, Inc. All rights reserved.

            Aptana Studio is licensed under the terms of the GNU Public License (GPL) v3 (with exceptions). Please visit http://www.aptana.com/legal/ for more information.

            To view additional credits and copyrights, please view the credits page in the Aptana Studio 3 help system.

            Our privacy policy is located at http://www.aptana.com/privacy_policy

            Build: jenkins-studio3-rcp-development-37 (origin/development)
            Date: 30 August 2013, 18:26:20
            "

            and i don't have support for php 5.4.

            Show
            Kowalski added a comment - hello! I have development branch: " Aptana Studio 3, build: 3.5.0.201308301825 (c) Copyright 2005-2013 by Appcelerator, Inc. All rights reserved. Aptana Studio is licensed under the terms of the GNU Public License (GPL) v3 (with exceptions). Please visit http://www.aptana.com/legal/ for more information. To view additional credits and copyrights, please view the credits page in the Aptana Studio 3 help system. Our privacy policy is located at http://www.aptana.com/privacy_policy Build: jenkins-studio3-rcp-development-37 (origin/development) Date: 30 August 2013, 18:26:20 " and i don't have support for php 5.4.
            Hide
            Kirk Olson added a comment -

            I have Aptana Studio 3 Plugin 3.5.0.201309112453 installed.

            When I switch "PHP Version" in my project properties to "PHP 5.4.x" I have the correct PHP 5.4 code-assist for a little while. However this setting automagically switches back to "PHP 5.3.x" for some reason, giving me error messages for [...] and traits once again.

            Anyone?

            Show
            Kirk Olson added a comment - I have Aptana Studio 3 Plugin 3.5.0.201309112453 installed. When I switch "PHP Version" in my project properties to "PHP 5.4.x" I have the correct PHP 5.4 code-assist for a little while. However this setting automagically switches back to "PHP 5.3.x" for some reason, giving me error messages for [...] and traits once again. Anyone?
            Michael Xia (Inactive) made changes -
            Priority Medium [ 3 ] High [ 2 ]
            Michael Xia (Inactive) made changes -
            Michael Xia (Inactive) made changes -
            Hide
            Dennis Tap added a comment - - edited

            I have the same problem as Kirk, switching to PHP 5.4.x but is set to PHP 5.3.x when I return to check the setting because trait errors.

            Did someone found a reason/ solution?

            Show
            Dennis Tap added a comment - - edited I have the same problem as Kirk, switching to PHP 5.4.x but is set to PHP 5.3.x when I return to check the setting because trait errors. Did someone found a reason/ solution?
            Hide
            Michael Ruoss added a comment -

            Me, too. Cannot switch to 5.4.x as it would switch back...

            Is there a way to add this directly to the .project file?

            Show
            Michael Ruoss added a comment - Me, too. Cannot switch to 5.4.x as it would switch back... Is there a way to add this directly to the .project file?
            Hide
            Dennis Tap added a comment -

            The problem with switching to 5.4.x project only happens when je try to change an existing project to 5.4.x. If you setup a new project with 5.4.x php it wil stay on 5.4.x.

            I created a new project and moved my files into the new project.

            Show
            Dennis Tap added a comment - The problem with switching to 5.4.x project only happens when je try to change an existing project to 5.4.x. If you setup a new project with 5.4.x php it wil stay on 5.4.x. I created a new project and moved my files into the new project.
            Hide
            Michael Ruoss added a comment -

            Thanks a lot for this! Using your approach I found out that you can create a file "PATH_TO_PROJECT/.settings/com.aptana.editor.php.prefs" with the following content:

            eclipse.preferences.version=1
            phpVersion=php5.4

            Show
            Michael Ruoss added a comment - Thanks a lot for this! Using your approach I found out that you can create a file "PATH_TO_PROJECT/.settings/com.aptana.editor.php.prefs" with the following content: eclipse.preferences.version=1 phpVersion=php5.4
            Transition Time In Source Status Execution Times Last Executer Last Execution Date
            Open Open Resolved Resolved
            449d 3h 48m 1 Shalom Gibly 28/May/13 1:13 AM

              People

              • Assignee:
                Shalom Gibly
                Reporter:
                Leo Unglaub
              • Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development