php4ts.dll?
5 posts
• Page 1 of 1
php4ts.dll?
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.
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?
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).
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?
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.
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?
Yes, this can be set using the /lang command line option:
Or in a config file:
/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
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 26 guests