php_vm 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/ext/php_vm/php_vm.c CHANGED
@@ -858,7 +858,7 @@ void Init_php_vm()
858
858
  rb_define_singleton_method(rb_mPHPVM, "define_global_classes", rb_php_vm_define_global_classes, 0);
859
859
  rb_define_singleton_method(rb_mPHPVM, "define_global", rb_php_vm_define_global, 0);
860
860
 
861
- rb_define_const(rb_mPHPVM, "VERSION", rb_str_new2("1.2.1"));
861
+ rb_define_const(rb_mPHPVM, "VERSION", rb_str_new2("1.2.2"));
862
862
 
863
863
  // module PHPVM::PHPGlobal
864
864
  rb_mPHPGlobal = rb_define_module_under(rb_mPHPVM, "PHPGlobal");
@@ -129,7 +129,7 @@ VALUE zval_to_value(zval *z)
129
129
  case IS_LONG:
130
130
  return INT2NUM(Z_LVAL_P(z));
131
131
  case IS_DOUBLE:
132
- return DBL2NUM(Z_DVAL_P(z));
132
+ return rb_float_new(Z_DVAL_P(z));
133
133
  case IS_ARRAY:
134
134
  case IS_CONSTANT_ARRAY:{
135
135
  HashTable* ht = Z_ARRVAL_P(z);
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.2.1
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: