tahoangminh269 / apns-php

Automatically exported from code.google.com/p/apns-php
0 stars 0 forks source link

Problem with Debian Stable (Lenny) - PHP 5.2.6 #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've installed your library on a Debian stable system.

While locally the code worked very well (MAMP System with PHP v5.3.x), on the 
server (Linux Debian PHP v5.2.6) the sandbox APNS returns a "Missing Payload" 
error.

After an half of day of tests, I've located the problem: the json_encode 
function takes 2nd parameter "options" from 5.3 PHP version:
http://php.net/manual/en/function.json-encode.php

Then I removed the parameter "JSON_FORCE_OBJECT" in method getPayload() of 
Message object.

Now all seems works, but I don't know if my changes are ok.
I'm using only Push and Feedback functionalities.

Thank you in advance.

Simone

Original issue reported on code.google.com by lai.sim...@gmail.com on 8 Oct 2010 at 1:55

GoogleCodeExporter commented 8 years ago
Hi Simone,

sorry apns-php is only available for PHP 5.3.x series so I haven't tested it 
with the 5.2.x PHP series.

Aldo

Original comment by aldo.arm...@gmail.com on 24 Nov 2010 at 2:26