php_vm 1.1.0 → 1.1.1

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
@@ -641,7 +641,7 @@ void Init_php_vm()
641
641
  rb_define_singleton_method(rb_mPHPVM, "exec", rb_php_vm_exec, 1);
642
642
  rb_define_singleton_method(rb_mPHPVM, "getClass", rb_php_vm_getClass, 1);
643
643
 
644
- rb_define_const(rb_mPHPVM, "VERSION", rb_str_new2("1.1.0"));
644
+ rb_define_const(rb_mPHPVM, "VERSION", rb_str_new2("1.1.1"));
645
645
 
646
646
  // class PHPVM::PHPClass
647
647
  rb_cPHPClass = rb_define_class_under(rb_mPHPVM, "PHPClass", rb_cObject);
@@ -61,7 +61,7 @@ static VALUE zval_to_value_hash(HashTable* ht)
61
61
 
62
62
  switch(zend_hash_get_current_key_ex(ht, &string_key, NULL, &num_index, 0, &pos)) {
63
63
  case HASH_KEY_IS_STRING:
64
- key = rb_str_new_cstr(string_key);
64
+ key = rb_str_new2(string_key);
65
65
  break;
66
66
  case HASH_KEY_IS_LONG:
67
67
  key = LONG2NUM(num_index);
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.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: