Lines Matching refs:i

147 	int result, remaining = b->blob_total_length, i = 0;  in exec_php()  local
152 b->blob_get_segment(b->blob_handle, &code[i++<<16],min(0x10000,remaining), &read); in exec_php()
190 int i; in call_php() local
205 for (i = 0; i < argc; ++i) { in call_php()
207 INIT_ZVAL(args[i]); in call_php()
208 argp[i] = &args[i]; in call_php()
211 if (argv[i]->dsc_flags & DSC_null) { in call_php()
212 ZVAL_NULL(argp[i]); in call_php()
216 switch (argv[i]->dsc_dtype) { in call_php()
223 ZVAL_STRING(argp[i], (char*)argv[i]->dsc_address,0); in call_php()
227 ZVAL_STRINGL(argp[i], (char*)argv[i]->dsc_address, argv[i]->dsc_length,0); in call_php()
231 ZVAL_STRINGL(argp[i], ((PARAMVARY*)argv[i]->dsc_address)->vary_string, in call_php()
232 ((PARAMVARY*)argv[i]->dsc_address)->vary_length,0); in call_php()
236 if (argv[i]->dsc_scale == 0) { in call_php()
237 ZVAL_LONG(argp[i], *(short*)argv[i]->dsc_address); in call_php()
239 ZVAL_DOUBLE(argp[i], in call_php()
240 ((double)*(short*)argv[i]->dsc_address)/scales[-argv[i]->dsc_scale]); in call_php()
245 if (argv[i]->dsc_scale == 0) { in call_php()
246 ZVAL_LONG(argp[i], *(ISC_LONG*)argv[i]->dsc_address); in call_php()
248 ZVAL_DOUBLE(argp[i], in call_php()
249 ((double)*(ISC_LONG*)argv[i]->dsc_address)/scales[-argv[i]->dsc_scale]); in call_php()
254 l = *(ISC_INT64*)argv[i]->dsc_address; in call_php()
256 if (argv[i]->dsc_scale == 0 && l <= LONG_MAX && l >= LONG_MIN) { in call_php()
257 ZVAL_LONG(argp[i], (long)l); in call_php()
259 ZVAL_DOUBLE(argp[i], ((double)l)/scales[-argv[i]->dsc_scale]); in call_php()
264 ZVAL_DOUBLE(argp[i], *(float*)argv[i]->dsc_address); in call_php()
268 ZVAL_DOUBLE(argp[i], *(double*)argv[i]->dsc_address); in call_php()
272 isc_decode_sql_date((ISC_DATE*)argv[i]->dsc_address, &t); in call_php()
273 ZVAL_STRINGL(argp[i], d, strftime(d, sizeof(d), INI_STR("ibase.dateformat"), &t),1); in call_php()
277 isc_decode_sql_time((ISC_TIME*)argv[i]->dsc_address, &t); in call_php()
278 ZVAL_STRINGL(argp[i], d, strftime(d, sizeof(d), INI_STR("ibase.timeformat"), &t),1); in call_php()
282 isc_decode_timestamp((ISC_TIMESTAMP*)argv[i]->dsc_address, &t); in call_php()
283 ZVAL_STRINGL(argp[i], d, strftime(d, sizeof(d), INI_STR("ibase.timestampformat"), &t),1); in call_php()
299 for (i = 0; i < argc; ++i) { in call_php()
300 switch (argv[i]->dsc_dtype) { in call_php()
304 zval_dtor(argp[i]); in call_php()