php4ts.dll?

Discussion about the open-source Phalanger [?] project.

php4ts.dll?

Postby Brutos@codeplex » August 11th, 2006, 11:53 pm

Is Phalanger developed on base of PHP4?
And why you dont use PHP5?
PHP5 is much cooler than 4 ;).

But i've to congratulate, Phalanger is realy cool and it works great.
Brutos@codeplex
 
Posts: 1
Joined: January 7th, 2012, 8:57 pm

RE: php4ts.dll?

Postby Tomas Matousek » August 12th, 2006, 12:22 am

Only PHP native extensions are executed against php4ts.dll. This library implements Zend API emulation corresponding to PHP version 4. This means that PHP native extensions running with PHP5 are not available for Phalanger. You may either use their PHP4 version or use mananged reimplementation, if available.

The reason for the limited support is that various versions of Zend API are incompatible with each other, so each one needs a new phpXts.dll that interfaces to Phalanger apps. Writing such .dll is very time consuming and unfortunately, we don't have too much time. Anyone who would like to join us and implement it for PHP5 is warmly welcomed (knowledge of C++/CLI is a must).

Another option, how to make a PHP5-only native extension available for Phalanger apps is to reimplement it in C#. It is much much easier than implementing php5ts and also much easier than do it for PHP interpreter. See MSSQL managed extension for example of how a managed extension can be implemented for Phalanger.

Apart from PHP5 native extensions, Phalanger supports virtually all features of PHP5 (and some of the PHP6 language, like goto and some of PHP5/namespace patch - namespaces, global constants).
Tomas Matousek
 
Posts: 17
Joined: January 7th, 2012, 8:52 pm

RE: php4ts.dll?

Postby knipjo@codeplex » September 29th, 2006, 1:09 am

Hello,
While talking about what phalanger is supporting...
is there a way (an option?) to restrict the used PHP to for exemple PHP4, or PHP5, or PHP6 or PHP.net?
Can your parser make the difference between all those?
This would make the reuse of the compiler very usefull in terms of compatibility with legacy code...

John.
knipjo@codeplex
 
Posts: 4
Joined: January 7th, 2012, 8:57 pm

RE: php4ts.dll?

Postby Lada Prosek » September 29th, 2006, 7:30 am

Yes, this can be set using the /lang command line option:
/lang:[PHP4|PHP5|PHP6|CLR]Enable language features of the specified PHP language version.

Or in a config file:

<set name="LanguageFeatures">	<!-- add value="ShortOpenTags" phpName="short_open_tag" /-->	<!-- add value="AspTags" phpName="asp_tags" /-->	<!-- add value="UnicodeSemantics" phpName="unicode.semantics" /-->	<!-- add value="V5Keywords" /-->	<!-- add value="V6Keywords" /-->	<!-- add value="TypeKeywords" /-->	<!-- add value="ClrSemantics" /-->	<!-- add value="Linq" /--></set>
Lada Prosek
 
Posts: 47
Joined: January 7th, 2012, 8:52 pm

RE: php4ts.dll?

Postby knipjo@codeplex » September 29th, 2006, 8:44 am

perfect :)
thank you.
knipjo@codeplex
 
Posts: 4
Joined: January 7th, 2012, 8:57 pm


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 22 guests

cron

User Control Panel

Login

Who is online

In total there are 22 users online :: 0 registered, 0 hidden and 22 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 22 guests