huangmaidi/apns-php

Problem with Debian Stable (Lenny) - PHP 5.2.6

Closed this issue · 1 comments

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

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

  • Changed state: Invalid