php_embed 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- 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