Setting "memory_limit" not supported?
4 posts
• Page 1 of 1
Setting "memory_limit" not supported?
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!
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?
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.
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?
Hi,
yes, since Phalanger runs on .NET, memory limit does not make any sense (all requests share the same memory heap).
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. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Setting "memory_limit" not supported?
Thanks Jakub.
For anyone interested, they can find my solution here:
http://www.codeproject.com/Tips/1004596 ... SP-NET-MVC
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
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests