php_vm 1.3.3 → 1.3.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.
Files changed (2) hide show
  1. data/ext/php_vm/php_vm.c +2 -2
  2. metadata +1 -1
data/ext/php_vm/php_vm.c CHANGED
@@ -220,7 +220,7 @@ void define_php_properties(VALUE v_obj, zend_class_entry *ce, int is_static)
220
220
  while (zend_hash_get_current_data_ex(&ce->properties_info, (void **) &prop, &pos) == SUCCESS) {
221
221
  int flag = prop->flags;
222
222
  const char *getter_name = prop->name;
223
- char *setter_name = malloc(prop->name_length+ 1);
223
+ char *setter_name = malloc(prop->name_length + 2);
224
224
  sprintf(setter_name, "%s=", getter_name);
225
225
 
226
226
  if (is_static) {
@@ -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.3"));
1174
+ rb_define_const(rb_mPHPVM, "VERSION", rb_str_new2("1.3.4"));
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.3
4
+ version: 1.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: