BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Phalanger Roundup

| by Jonathan Allen on Jan 27, 2012. Estimated reading time: less than one minute |

Phalanger is the .NET runtime and compiler for PHP offered by DevSense. When we lasted covered Phalanger it was in the process of converting its backend to use the DLR, which offered performance improvements over past versions.

Since then Phalanger 3 has been released support for PHP 5.3 namespace syntax and semantics as well as Mono. Some bugs in the Mono runtime caused problems that prevented fully leveraging Phalanger. In Mono 2.10.8 the bugs were fixed, making Phalanger a viable option on Linux.

Another change with Phalanger 3 is support for calling DLR objects from C# and Visual Basic. While that partially worked in version 2.1, it required a clumsy syntax involving passing around a context object. With version 3 that work-around is no longer needed. Developers also have direct access to PHP’s globals via ScriptContext.CurrentContext.Globals.

It should be noted that Phalanger still supports statically compiling PHP code into standard .NET assemblies. Marc Mezzacca recommends precompiling PHP-based websites to “make sure the application is error free and to lower response time during first request”.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and dont miss out on content that matters to you

BT