Setting "memory_limit" not supported?

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

Setting "memory_limit" not supported?

Postby vnmatt » June 22nd, 2015, 8:18 am

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!
vnmatt
 
Posts: 4
Joined: June 22nd, 2015, 8:08 am

Re: Setting "memory_limit" not supported?

Postby vnmatt » June 23rd, 2015, 4:35 am

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. :-)
vnmatt
 
Posts: 4
Joined: June 22nd, 2015, 8:08 am

Re: Setting "memory_limit" not supported?

Postby Jakub Misek » June 24th, 2015, 10:07 am

Hi,

yes, since Phalanger runs on .NET, memory limit does not make any sense (all requests share the same memory heap).
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Setting "memory_limit" not supported?

Postby vnmatt » June 30th, 2015, 4:53 am

Thanks Jakub.

For anyone interested, they can find my solution here:
http://www.codeproject.com/Tips/1004596 ... SP-NET-MVC
vnmatt
 
Posts: 4
Joined: June 22nd, 2015, 8:08 am


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 25 guests

cron

User Control Panel

Login

Who is online

In total there are 25 users online :: 0 registered, 0 hidden and 25 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 25 guests