musacivak / rock-php

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

Only valid json is accepted. #238

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When updating with NumberInt(*)

{
  "AddUnixTime": NumberInt(1359563154),
  "AddDate": "Wed, 30 Jan 2013 16:25:54 +0000",
  "ExecuteAfter": NumberInt(1359563184),
  "ExecuteAfterHumanRead": "Wed, 30 Jan 2013 16:26:24 +0000",
  "Nice": NumberInt(20),
  "Code": "ImagesToS3();",
  "JobId": "ImagesToS3",
  "ExpireTimestamp": NumberInt(1422635154),
  "ExpireHumanRead": "Fri, 30 Jan 2015 16:25:54 +0000",
  "Name": "ImagesToS3",
  "MaxLoad": NumberInt(2),
  "PID": "510949927fa48"
}

if i put:

{
  "AddUnixTime": 1359563154,
  "AddDate": "Wed, 30 Jan 2013 16:25:54 +0000",
  "ExecuteAfter": 1359563184,
  "ExecuteAfterHumanRead": "Wed, 30 Jan 2013 16:26:24 +0000",
  "Nice": 20,
  "Code": "ImagesToS3();",
  "JobId": "ImagesToS3",
  "ExpireTimestamp": 1422635154,
  "ExpireHumanRead": "Fri, 30 Jan 2015 16:25:54 +0000",
  "Name": "ImagesToS3",
  "MaxLoad": 2,
  "PID": "510949927fa48"
}

it works

================

RockMongo Version (1.1.5)
Web server  Apache/2.2.20
PHP version PHP 5.3.6-13ubuntu3.8
PHP extension   mongo/1.2.12

Original issue reported on code.google.com by zecompa...@gmail.com on 30 Jan 2013 at 4:31