Fatal error

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
alex_savin
Forum Newbie
Posts: 2
Joined: Mon Oct 22, 2007 5:40 am
Location: Romania
Contact:

Fatal error

Post 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
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

What is line 62, and around? It must be some huge loop, or sometimes endless loop.

4294967295 bytes = 4 gigabytes
User avatar
alex_savin
Forum Newbie
Posts: 2
Joined: Mon Oct 22, 2007 5:40 am
Location: Romania
Contact:

Post 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 ?!
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Please post the code in this file:
D:\WWWSites\helpu2\reports\nir.php

lines 60 to 70 if you can.
Post Reply