php_embed 0.1.2 → 0.2.0
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.
- data/ext/php_embed/convert.c +2 -1
- data/ext/php_embed/php.c +1 -1
- data/lib/php_embed/version.rb +1 -1
- metadata +1 -1
data/ext/php_embed/convert.c
CHANGED
@@ -160,12 +160,13 @@ VALUE convert_value_to_php_string(VALUE v) {
|
|
160
160
|
{
|
161
161
|
VALUE ret = rb_str_new_cstr("array(");
|
162
162
|
VALUE ary = rb_ary_new();
|
163
|
+
VALUE *p;
|
163
164
|
int i, len;
|
164
165
|
|
165
166
|
rb_hash_foreach(v, hash_to_php_string_array, ary);
|
166
167
|
|
167
168
|
len = RARRAY_LEN(ary);
|
168
|
-
|
169
|
+
p = RARRAY_PTR(ary);
|
169
170
|
for(i=0; i<len; ++i) {
|
170
171
|
rb_str_cat2(ret, StringValuePtr(p[i]));
|
171
172
|
if (i != len-1) {
|
data/ext/php_embed/php.c
CHANGED
data/lib/php_embed/version.rb
CHANGED