php_vm 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/php_vm/php_vm.c +3 -3
  2. metadata +2 -2
data/ext/php_vm/php_vm.c CHANGED
@@ -20,7 +20,7 @@ VALUE rb_ePHPErrorReporting;
20
20
  static int php_embed_output_handler(const char *str, unsigned int str_length TSRMLS_DC)
21
21
  {
22
22
  VALUE proc = rb_cv_get(rb_mPHPVM, "@@output_handler");
23
- if (rb_obj_is_proc(proc)) {
23
+ if (rb_obj_is_kind_of(proc, rb_cProc)) {
24
24
  VALUE args = rb_ary_new();
25
25
  rb_ary_push(args, rb_str_new(str, str_length));
26
26
  rb_proc_call(proc, args);
@@ -35,7 +35,7 @@ static void php_embed_error_handler(char *message)
35
35
  {
36
36
  VALUE proc = rb_cv_get(rb_mPHPVM, "@@error_handler");
37
37
  VALUE report = rb_exc_new2(rb_ePHPErrorReporting, message);
38
- if (rb_obj_is_proc(proc)) {
38
+ if (rb_obj_is_kind_of(proc, rb_cProc)) {
39
39
  VALUE args = rb_ary_new();
40
40
  rb_ary_push(args, report);
41
41
  rb_proc_call(proc, args);
@@ -1171,7 +1171,7 @@ void Init_php_vm()
1171
1171
  rb_define_singleton_method(rb_mPHPVM, "get_class", rb_php_vm_get_class, 1);
1172
1172
  rb_define_singleton_method(rb_mPHPVM, "define_global", rb_php_vm_define_global, 0);
1173
1173
 
1174
- rb_define_const(rb_mPHPVM, "VERSION", rb_str_new2("1.3.4"));
1174
+ rb_define_const(rb_mPHPVM, "VERSION", rb_str_new2("1.3.5"));
1175
1175
 
1176
1176
  rb_cv_set(rb_mPHPVM, "@@output_handler", Qnil);
1177
1177
  rb_cv_set(rb_mPHPVM, "@@error_handler", Qnil);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: php_vm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-31 00:00:00.000000000 Z
12
+ date: 2013-01-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: php_vm is a native bridge between Ruby and PHP.
15
15
  email: