# PHP_5_3 GOTO?

- Thread: https://externals.io/message/36764
- Original archive: https://news-web.php.net/php.internals/36764
- Started by James Dempster on 2008-04-02T12:01:36+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #36764 — James Dempster — 2008-04-02T12:01:36+00:00

URL: https://externals.io/message/36764#36764

Hi All,

My first post here. :-)

Just started using PHP_5_3 for a development project. It's a fairly long 
project so 5.3 should be out before it's finished.

My reason for using PHP_5_3 was for late static binding (been longing 
for this feature).

While using 5.3 I also get to test the development version of PHP and 
hopefully provide feedback, or ask questions.

So on with my question.

I see there was a patch added to CVS 2 days ago which added the `T_GOTO` 
token. This has since broken the Zend Framework for me as they're using 
the goto keyword on some of their objects.

I thought it was version PHP 6 that was adding the goto operator.

Does anyone know the state of things for the goto keyword and PHP 5.3?

Thanks
/James

---

## #36765 — David Coallier — 2008-04-02T12:36:25+00:00

URL: https://externals.io/message/36764#36765 · In reply to: #36764

>  I see there was a patch added to CVS 2 days ago which added the `T_GOTO` 
> token. This has since broken the Zend Framework for me as they're using the
> goto keyword on some of their objects.
>
>  I thought it was version PHP 6 that was adding the goto operator.

Been discussed on this list that certain HEAD (php6) features should
be backported to 5_3
>
>  Does anyone know the state of things for the goto keyword and PHP 5.3?

See
http://marc.info/?l=php-internals&w=2&r=1&s=Backporting+to+5_3&q=b

That should answer your questions :)

D

---

## #36772 — Edward Z. Yang — 2008-04-02T19:59:01+00:00

URL: https://externals.io/message/36764#36772 · In reply to: #36765

David Coallier wrote:
> See
> http://marc.info/?l=php-internals&w=2&r=1&s=Backporting+to+5_3&q=b

As far as I know (and I was following that conversation), there was no
discussion about the new goto keyword conflicting with existing code.

-- 
 Edward Z. Yang                        GnuPG: 0x869C48DA
 HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
 [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
