Easy way to execute PHP code from .NET

I haven't found an easy way to execute PHP code from a string, like for example in IronRuby or IronPython: https://github.com/toburger/RulesEngine/blob/master/RulesEngine/Models/RubyRuleEngine.cs#L...

Id #32641 | Release: None | Updated: May 3 at 12:05 PM by jakub | Created: May 2 at 11:53 AM by tobias

null $_SESSION values in StateServer mode

When using sessionState="StateServer" mode, .NET structs placed in $_SESSION are not persisted correctly. When get a null when restoring the session. Steps to reproduce: 1. Ensure Windows ASP.NET...

Id #32604 | Release: None | Updated: May 8 at 10:46 AM by Richard_Browne | Created: Apr 22 at 1:34 AM by Richard_Browne

StackOverflowException adding struct to $_SESSION

This php page causes a stack overflow exception with the latest Phalanger 3.0 2012-04-18 r2: <?php $_SESSION['x'] = new System\DateTime::$Now; ?>

Id #32603 | Release: None | Updated: Apr 22 at 7:35 PM by jakub | Created: Apr 22 at 12:26 AM by Richard_Browne

Integrate with NuGet

Would be nice to see Phalanger as a NuGet package to get an installation-free Phalanger (no GAC, no machine.config, preconfigured web.config) like detailed in this article: http://www.php-compiler....

Id #32461 | Release: None | Updated: Fri at 5:57 PM by miloslavbeno | Created: Mar 20 at 7:21 AM by tobias

Why does Phalanger serialize session variables to "Phalanger.SessionVars"?

When ASP.NET SessionStateMode is not InProc, Phalanger serializes its $_SESSION variables to an ASP.NET byte array called "Phalanger.SessionVars". Why? What does this achieve? Our project is a mix...

Id #32366 | Release: None | Updated: May 1 at 12:33 AM by Richard_Browne | Created: Mar 7 at 7:34 AM by Richard_Browne

exit() throws catchable System\Exception

Try this php page: <?php try { echo "Test 1<br/>"; exit(1); } catch (System\Exception $fault) { echo "Caught System.Exception!!"; } ?> It prints "Caught System.Exception!!". I'm pretty sure pr...

Id #32365 | Release: None | Updated: Mar 8 at 8:23 AM by jakub | Created: Mar 7 at 7:24 AM by Richard_Browne

Php ReflectionClass is not Define in Phalager?

In My Compile Code With phpc /pure /lang:PHP5 /target:dll below warning & Error shown: c:\Program Files\EasyPHP-5.3.9\www\DGA.php(8241,37): warning PHP0020: Class 'Ref lectionClass' is unknown at ...

Id #32348 | Release: None | Updated: May 2 at 1:47 PM by jakub | Created: Mar 5 at 8:11 AM by msdmazarei

internal error occurred

I got an internal error when compile codes in App_Code folder. Compiler error message Phalanger - the PHP Language Compiler - commencing compilation in a separate appdomain Source files to compile...

Id #32193 | Release: None | Updated: Apr 3 at 11:21 PM by jakub | Created: Feb 7 at 12:12 AM by rkttu

float to string conversion does not honor decimal_point

Take the following simple php page: <?php setlocale(LC_ALL, "Norwegian", "no"); $localeconv = localeconv(); echo "decimal_point is `" . $localeconv['decimal_point'] . "'"; echo '<br />'; $pi = 3.1...

Id #31368 | Release: None | Updated: Sep 4 2011 at 8:07 AM by Richard_Browne | Created: Sep 1 2011 at 10:57 AM by Richard_Browne

preg_split giving a warning "Not enough )'s"

Hi, I'm using Phalanger in an attempt to use NBBC in C# I am trying to build a pure console application (although I also get this problem in a standard console application) where the following li...

Id #31054 | Release: None | Updated: Dec 9 2011 at 6:38 PM by jakub | Created: Jul 21 2011 at 7:42 AM by jakub