Page 1 of 1

Setting "memory_limit" not supported?

PostPosted: June 22nd, 2015, 8:18 am
by vnmatt
Hello all.. I am a complete newbie to both Phalanger and PHP! So please forgive any stupid questions I may ask.. I am a .NET developer and trying to integrate a PHP file manager (http://www.responsivefilemanager.com/) into an ASP.NET MVC site using Phalanger.

I have had some success, but not entirely. The file manager now displays, but there is an error as follows:

Warning: ini_set(): Value 'Set' of argument 'memory_limit' is not supported

I have tried asking on Stack Overflow (http://stackoverflow.com/questions/30949804/asp-net-php-view-using-phalanger-for-only-one-page?noredirect=1#comment49938868_30949804), to no avail so decided to ask here instead where hopefully some pro Phalanger dev can help me.

My latest attempt is upload here: http://www.mediafire.com/download/8lfzm ... 150622.zip

Any help much appreciated. Thanks in advance!

Re: Setting "memory_limit" not supported?

PostPosted: June 23rd, 2015, 4:35 am
by vnmatt
Nevermind guys; I noticed the current version doesn't support this when I was looking at the source code here:
https://github.com/DEVSENSE/Phalanger/blob/master/Source/ClassLibrary/PhpIni.CLR.cs
- See method: GsrMemoryLimit

Anyway, it was only being used in one place in the code I want to use and so I circumvented that completely. I also had to make a multitude of other changes, but I seem to have it working quite well now.

Thanks anyway. :-)

Re: Setting "memory_limit" not supported?

PostPosted: June 24th, 2015, 10:07 am
by Jakub Misek
Hi,

yes, since Phalanger runs on .NET, memory limit does not make any sense (all requests share the same memory heap).

Re: Setting "memory_limit" not supported?

PostPosted: June 30th, 2015, 4:53 am
by vnmatt
Thanks Jakub.

For anyone interested, they can find my solution here:
http://www.codeproject.com/Tips/1004596 ... SP-NET-MVC