-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory exhausted #68
Comments
I got the same problem. |
I have the issue too, looking into it now... |
Well, I had a plaster/bandaid fix for line 818, but that only shifted another memory issue to line 504! The fix was:
Alternatively, bump up your memory if you can (need access to php.ini)... 512MB worked. To summarise, the INI file is HUGE |
Guys, stop it right there! |
ini_set('memory_limit', '-1'); overrides the default PHP memory limit. |
Expanding the available memory is very dangerous. PHP could suck up memory normally used by other processes or simply grow uncontrollably until the system crashes. Also, setting the INI means that your instance of PHP will have full access to it, which is a security risk. Lastly, setting the INI affects all PHP processes and scripts, not just the one that browscap is being used in.
|
Another idea is to use another CLI program like The chunk loading is also great. Either way, the downloading should be done through |
Currently using the workaround described by @zergtant to get this going. I feel this should be documented somewhere more officially though. Better still, it'd be a neat to include a script that could be used via cron to get/update this file 👍 |
If you the library from |
Looks like the issues have been fixed in another port |
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 131072 bytes) in /www/XYZ/scripts/Browscap.php on line 833 500MB not enought? Whats to do? |
I have the same problem... doesn't work. |
So, I just decided to test out this little toy on my personal server, and I ran into a bit of an issue. This is the message I got:
What exactly are you trying to do!? You may ask. Well, nothing more nor less than what was shown in the quick start guide.
On a likely related note, the cache folder. I'm not sure what it's supposed to do, but I created it, and directed the script to it, and unlocked it for full access (777), and yet nothing is filling it. I run the script, but I get the above error, and the folder remains empty.
Am I doing something wrong, or is this an error in the class?
Thank you for your time.
The text was updated successfully, but these errors were encountered: