BT
x Your opinion matters! Please fill in the InfoQ Survey about your reading habits!

Phalanger Roundup

by Jonathan Allen on Jan 27, 2012 |

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”.

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

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT