Page 1 of 1

Fatal error

Posted: Mon Oct 22, 2007 5:43 am
by alex_savin
Hello!

I've moved all my applications from one server to another. The former
server's configuration was PHP v5.0.2/Apache v2.0/Windows Server 2000
and now is PHP v5.2.4/IIS6/Windows Server 2003.

Every think else is working properly besides the printing function.
When I try to print something with the php_printer.dll's functions this error
appears:

Code: Select all

Fatal error: Out of memory (allocated 524288) (tried to allocate
4294967295 bytes) in D:\WWWSites\helpu2\reports\nir.php on line 62
This worked perfectly on the previous server.

Thank you in advance,
Alex

Posted: Mon Oct 22, 2007 8:09 am
by Zoxive
What is line 62, and around? It must be some huge loop, or sometimes endless loop.

4294967295 bytes = 4 gigabytes

Posted: Mon Oct 22, 2007 8:16 am
by alex_savin
Zoxive wrote:What is line 62, and around? It must be some huge loop, or sometimes endless loop.

4294967295 bytes = 4 gigabytes
Well that is the think ... I tested it with just one line :

Code: Select all

printer_open('path');

the same think ... besides the line that now is 1. There is no loop... this the memory size that my php allocates to create the printing object... hack knows way ?!

Posted: Mon Oct 22, 2007 11:24 am
by RobertGonzalez
Please post the code in this file:
D:\WWWSites\helpu2\reports\nir.php

lines 60 to 70 if you can.