phprpc 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/AUTHORS CHANGED
@@ -11,3 +11,5 @@ Contributor:
11
11
  Wudi <wudicgi@yahoo.de> contributed more suggestion to the PHPRPC protocol
12
12
  3.0 and the PEAR implementation version.
13
13
 
14
+ BawBaw Hu <bawbaw.hu@gmail.com> contributed more suggestion to PHPRPC 3.0
15
+ implementation in other languages and writen so many examples.
data/README CHANGED
@@ -20,7 +20,7 @@
20
20
  -------------
21
21
 
22
22
  Documentation is available in HTML format. For information about PHPRPC,
23
- see the online manual at <http://www.phprpc.org/>.
23
+ see the online manual at <http://www.phprpc.org/docs/>.
24
24
 
25
25
 
26
26
  Licensing
data/lib/crypt/xxtea.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # xxtea.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
data/lib/php/formator.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # formator.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
@@ -24,8 +24,8 @@
24
24
  # PHP serialize/unserialize library.
25
25
  #
26
26
  # Copyright (C) 2005-2008 Ma Bingyao <andot@ujn.edu.cn>
27
- # Version: 1.1
28
- # LastModified: Sep 3, 2008
27
+ # Version: 1.3
28
+ # LastModified: Jan 18, 2009
29
29
  # This library is free. You can redistribute it and/or modify it.
30
30
 
31
31
  require 'stringio'
@@ -260,10 +260,18 @@ module PHP
260
260
  num
261
261
  end
262
262
 
263
+ def unserialize_boolean(string)
264
+ string.read(1)
265
+ result = (string.read(1) == true)
266
+ string.read(1)
267
+ result
268
+ end
269
+
263
270
  def unserialize_int(string)
264
271
  string.read(1)
265
272
  read_number(string).to_i
266
273
  end
274
+
267
275
  def unserialize_double(string)
268
276
  string.read(1)
269
277
  d = read_number(string)
@@ -369,6 +377,9 @@ module PHP
369
377
  vars = obj.instance_variables
370
378
  count.times {
371
379
  key = unserialize_key(string)
380
+ if key[0] == 0 then
381
+ key = key[key.index("\0", 1) + 1...key.length]
382
+ end
372
383
  value = _unserialize(string, obj_container)
373
384
  var = '@' << key
374
385
  begin
@@ -415,6 +426,9 @@ module PHP
415
426
  string.read(1)
416
427
  obj = nil
417
428
  obj_container.push(obj)
429
+ when 'b' then
430
+ obj = unserialize_boolean(string)
431
+ obj_container.push(obj)
418
432
  when 'i' then
419
433
  obj = unserialize_int(string)
420
434
  obj_container.push(obj)
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # base_server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
@@ -25,7 +25,7 @@
25
25
  #
26
26
  # Copyright (C) 2005-2008 Ma Bingyao <andot@ujn.edu.cn>
27
27
  # Version: 3.0
28
- # LastModified: Dec 14, 2008
28
+ # LastModified: Dec 19, 2008
29
29
  # This library is free. You can redistribute it and/or modify it.
30
30
 
31
31
  require "digest/md5"
@@ -173,6 +173,7 @@ module PHPRPC
173
173
  def header(request, body)
174
174
  h = {
175
175
  'X-Powered-By' => 'PHPRPC Server/3.0',
176
+ 'P3P' => 'CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"',
176
177
  'Expires' => CGI::rfc1123_date(Time.now),
177
178
  'Cache-Control' => 'no-store, no-cache, must-revalidate, max-age=0',
178
179
  'Content-Type' => "text/plain; charset=#{@charset}",
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # cgi_server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
data/lib/phprpc/client.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # client.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # ebb_server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # fake_server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # fcgi_server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # lsapi_server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # mongrel_server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # scgi_server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
data/lib/phprpc/server.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # thin_server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # webrick_server.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
data/lib/phprpc.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # phprpc.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
data/lib/powmod.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # #
5
5
  # powmod.rb #
6
6
  # #
7
- # Release 3.0.0 #
7
+ # Release 3.0.4 #
8
8
  # Copyright (c) 2005-2008 by Team-PHPRPC #
9
9
  # #
10
10
  # WebSite: http://www.phprpc.org/ #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phprpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - MA Bingyao ( andot )
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-14 00:00:00 +08:00
12
+ date: 2009-01-18 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15