Kani Str
asked on
PHP has encountered an Access Violation at 017DB326
On a windows 2003 machine,
PHP 4.4.2
throws
PHP has encountered an Access Violation at 017DB326
Warning: Unknown list entry type in request shutdown (0)
sounds like a bug, but i like to know how can i fix this? I welcome any kind of solution.
PHP 4.4.2
throws
PHP has encountered an Access Violation at 017DB326
Warning: Unknown list entry type in request shutdown (0)
sounds like a bug, but i like to know how can i fix this? I welcome any kind of solution.
ASKER
This is for a payment gateway script, which uses some Jar files to connect to the gateway server,
ASKER
is there any solution for this or only way is to go for the next version of PHP?
How are you using or accessing the .jar files?
Is it possible that there are many objects or large amounts of data created or discarded in the course of the scripts' run?
If your .jar files are tested and bulletproof (meaning that they operate reliably and consistently outside of PHP use), consider any constraints in PHP memory allocation or, depending on how those .jar files are being used, your Java VM.
Consider checking your scripts' resource usage and garbace collection; if there aren't obvious gains to be made there, consider increasing PHP's memory limit.
Also, many gateways offer PHP-based code for interfacing, as well as alternatives for Java, ASP, and so on.
Is it possible that there are many objects or large amounts of data created or discarded in the course of the scripts' run?
If your .jar files are tested and bulletproof (meaning that they operate reliably and consistently outside of PHP use), consider any constraints in PHP memory allocation or, depending on how those .jar files are being used, your Java VM.
Consider checking your scripts' resource usage and garbace collection; if there aren't obvious gains to be made there, consider increasing PHP's memory limit.
Also, many gateways offer PHP-based code for interfacing, as well as alternatives for Java, ASP, and so on.
ASKER
>>>How are you using or accessing the .jar files?
I am not sure about this, they have provided the jar and php files.
>>> Is it possible that there are many objects or large amounts of data created or discarded in the course of the scripts' run?
I don't think so, this is just a small connection bettween the payment gateway server and my server
>>> Consider checking your scripts' resource usage and garbace collection; if there aren't obvious gains to be made there, consider increasing PHP's memory limit.
can you please tell me how to increase the memory
I am not sure about this, they have provided the jar and php files.
>>> Is it possible that there are many objects or large amounts of data created or discarded in the course of the scripts' run?
I don't think so, this is just a small connection bettween the payment gateway server and my server
>>> Consider checking your scripts' resource usage and garbace collection; if there aren't obvious gains to be made there, consider increasing PHP's memory limit.
can you please tell me how to increase the memory
If you own or manage the system on which the code is running (and it's not in a shared hosting environment), the most direct and reliable way is via php.ini. In a clean install of PHP, you might see something like this:
memory_limit = 8M
And if you're including an number of classes or .jar files with dependencies, you can quickly reach that limit even for a short script run. You may want to increase it to something like:
memory_limit = 32M
Once you do this, be sure to save the file (take care not to accidentally type over anything else in the file).
If you're comfortable restarting your web server, do so; otherwise, reboot your system to ensure the changes take place.
If your memory limit is already 32M or higher and you're having the described problem, you can try increasing it using the same format ("XXM" for XX megabytes), but if your memory limit is already 32MB, memory probably isn't the problem.
memory_limit = 8M
And if you're including an number of classes or .jar files with dependencies, you can quickly reach that limit even for a short script run. You may want to increase it to something like:
memory_limit = 32M
Once you do this, be sure to save the file (take care not to accidentally type over anything else in the file).
If you're comfortable restarting your web server, do so; otherwise, reboot your system to ensure the changes take place.
If your memory limit is already 32M or higher and you're having the described problem, you can try increasing it using the same format ("XXM" for XX megabytes), but if your memory limit is already 32MB, memory probably isn't the problem.
ASKER
have the memory size to 50 MB still no change... people say this is a bug in PHP..!
is there any other fix other than going for a higher version?
is there any other fix other than going for a higher version?
ASKER
i got the solution when i changed my php version... :) shall i close this now?
Yes, you can ask for a refund in community support area.
-r-
-r-
No worries here; refund is not a problem.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
-r-