I've just recently upgraded to PHP 5.2 from 5.1 and realized that when I do a print_r( $request ) let's say after a "DoDirectPayment" I get this Error:
stdClass Object ( [Timestamp] => 2007-07-05T23:24:18Z [Ack] => Success [CorrelationID] => b4f6812631464 [Version] => 2.400000 [Build] => 1.0006 [Amount] =>
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1952671745 bytes) in /Users/rastinmehr/Sites/phppaypalpro/index.php on line 188
var_dump works fine, but the problem is that I cannot parse through the object and extract values.
I have also tried increasing the php memory size from 64M to 300M and it this time I get an error for larger allowed memory size. This only happens in php 5.2.2 aparently and I have tested the code on 2 different commercial servers (MediaTemple.com and BlueFur.com) and my own laptop (Apache 1.3, PHP5.2 on OS X).
or sometimes instead of getting an error message, it tries to download the index.php as a file.