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 +1 -1
- data/ext/php_vm/php_vm_z2v.c +1 -1
- metadata +1 -1
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.
|
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");
|
data/ext/php_vm/php_vm_z2v.c
CHANGED
@@ -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
|
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);
|