Lines Matching refs:i

145 	int result, remaining = b->blob_total_length, i = 0;  in exec_php()  local
150 b->blob_get_segment(b->blob_handle, &code[i++<<16],min(0x10000,remaining), &read); in exec_php()
188 int i; in call_php() local
203 for (i = 0; i < argc; ++i) { in call_php()
205 INIT_ZVAL(args[i]); in call_php()
206 argp[i] = &args[i]; in call_php()
209 if (argv[i]->dsc_flags & DSC_null) { in call_php()
210 ZVAL_NULL(argp[i]); in call_php()
214 switch (argv[i]->dsc_dtype) { in call_php()
221 ZVAL_STRING(argp[i], (char*)argv[i]->dsc_address,0); in call_php()
225 ZVAL_STRINGL(argp[i], (char*)argv[i]->dsc_address, argv[i]->dsc_length,0); in call_php()
229 ZVAL_STRINGL(argp[i], ((PARAMVARY*)argv[i]->dsc_address)->vary_string, in call_php()
230 ((PARAMVARY*)argv[i]->dsc_address)->vary_length,0); in call_php()
234 if (argv[i]->dsc_scale == 0) { in call_php()
235 ZVAL_LONG(argp[i], *(short*)argv[i]->dsc_address); in call_php()
237 ZVAL_DOUBLE(argp[i], in call_php()
238 ((double)*(short*)argv[i]->dsc_address)/scales[-argv[i]->dsc_scale]); in call_php()
243 if (argv[i]->dsc_scale == 0) { in call_php()
244 ZVAL_LONG(argp[i], *(ISC_LONG*)argv[i]->dsc_address); in call_php()
246 ZVAL_DOUBLE(argp[i], in call_php()
247 ((double)*(ISC_LONG*)argv[i]->dsc_address)/scales[-argv[i]->dsc_scale]); in call_php()
252 l = *(ISC_INT64*)argv[i]->dsc_address; in call_php()
254 if (argv[i]->dsc_scale == 0 && l <= LONG_MAX && l >= LONG_MIN) { in call_php()
255 ZVAL_LONG(argp[i], (long)l); in call_php()
257 ZVAL_DOUBLE(argp[i], ((double)l)/scales[-argv[i]->dsc_scale]); in call_php()
262 ZVAL_DOUBLE(argp[i], *(float*)argv[i]->dsc_address); in call_php()
266 ZVAL_DOUBLE(argp[i], *(double*)argv[i]->dsc_address); in call_php()
270 isc_decode_sql_date((ISC_DATE*)argv[i]->dsc_address, &t); in call_php()
271 ZVAL_STRINGL(argp[i], d, strftime(d, sizeof(d), INI_STR("ibase.dateformat"), &t),1); in call_php()
275 isc_decode_sql_time((ISC_TIME*)argv[i]->dsc_address, &t); in call_php()
276 ZVAL_STRINGL(argp[i], d, strftime(d, sizeof(d), INI_STR("ibase.timeformat"), &t),1); in call_php()
280 isc_decode_timestamp((ISC_TIMESTAMP*)argv[i]->dsc_address, &t); in call_php()
281 ZVAL_STRINGL(argp[i], d, strftime(d, sizeof(d), INI_STR("ibase.timestampformat"), &t),1); in call_php()
297 for (i = 0; i < argc; ++i) { in call_php()
298 switch (argv[i]->dsc_dtype) { in call_php()
302 zval_dtor(argp[i]); in call_php()