Lines Matching refs:result

192 	ZEND_ARG_INFO(0, result)
196 ZEND_ARG_INFO(0, result)
201 ZEND_ARG_INFO(0, result)
212 ZEND_ARG_INFO(0, result)
219 ZEND_ARG_INFO(0, result)
224 ZEND_ARG_INFO(0, result)
229 ZEND_ARG_INFO(0, result)
234 ZEND_ARG_INFO(0, result)
239 ZEND_ARG_INFO(0, result)
244 ZEND_ARG_INFO(0, result)
250 ZEND_ARG_INFO(0, result)
256 ZEND_ARG_INFO(0, result)
261 ZEND_ARG_INFO(0, result)
267 ZEND_ARG_INFO(0, result)
275 ZEND_ARG_INFO(0, result)
280 ZEND_ARG_INFO(0, result)
285 ZEND_ARG_INFO(0, result)
290 ZEND_ARG_INFO(0, result)
296 ZEND_ARG_INFO(0, result)
302 ZEND_ARG_INFO(0, result)
306 ZEND_ARG_INFO(0, result)
453 ZEND_ARG_INFO(0, result)
458 ZEND_ARG_INFO(0, result)
519 ZEND_ARG_INFO(0, result)
633 /* result functions */
805 char *result, *rp, *s;
812 rp = result = (char *)safe_emalloc(len, 2, 5); /* leading " E" needs extra 2 bytes + quote_chars on both end for 2 bytes + NULL */
875 return result;
1049 PQclear(pg_result->result);
1112 le_result = zend_register_list_destructors_ex(_free_result, NULL, "pgsql result", module_number);
1626 char *result;
1645 result = PQdb(pgsql);
1648 result = PQErrorMessageTrim(pgsql, &msgbuf);
1649 RETVAL_STRING(result);
1650 efree(result);
1653 result = PQoptions(pgsql);
1656 result = PQport(pgsql);
1659 result = PQtty(pgsql);
1662 result = PQhost(pgsql);
1696 if (result) {
1697 RETURN_STRING(result);
1902 pg_result->result = pgsql_result;
2037 pg_result->result = pgsql_result;
2121 pg_result->result = pgsql_result;
2234 pg_result->result = pgsql_result;
2255 zval *result;
2259 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &result) == FAILURE) {
2263 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
2267 pgsql_result = pg_result->result;
2290 /* {{{ proto int pg_num_rows(resource result)
2291 Return the number of rows in the result */
2298 /* {{{ proto int pg_num_fields(resource result)
2299 Return the number of fields in the result */
2307 /* {{{ proto int pg_affected_rows(resource result)
2389 PGresult *result;
2391 if ((result = PQexec(pgsql, "select oid,typname from pg_type")) == NULL || PQresultStatus(result) != PGRES_TUPLES_OK) {
2392 if (result) {
2393 PQclear(result);
2398 num_rows = PQntuples(result);
2399 oid_offset = PQfnumber(result,"oid");
2400 name_offset = PQfnumber(result,"typname");
2403 if ((tmp_oid = PQgetvalue(result,i,oid_offset))==NULL) {
2412 if ((tmp_name = PQgetvalue(result,i,name_offset))==NULL) {
2422 PQclear(result);
2431 /* {{{ proto mixed pg_field_table(resource result, int field_number[, bool oid_only])
2435 zval *result;
2444 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rl|b", &result, &fnum, &return_oid) == FAILURE) {
2448 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
2452 if (fnum < 0 || fnum >= PQnfields(pg_result->result)) {
2457 oid = PQftable(pg_result->result, (int)fnum);
2531 zval *result;
2537 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rl", &result, &field) == FAILURE) {
2541 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
2546 pgsql_result = pg_result->result;
2587 /* {{{ proto string pg_field_name(resource result, int field_number)
2595 /* {{{ proto int pg_field_size(resource result, int field_number)
2603 /* {{{ proto string pg_field_type(resource result, int field_number)
2611 /* {{{ proto string pg_field_type_oid(resource result, int field_number)
2619 /* {{{ proto int pg_field_num(resource result, string field_name)
2623 zval *result;
2629 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs", &result, &field, &field_len) == FAILURE) {
2633 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
2637 pgsql_result = pg_result->result;
2643 /* {{{ proto mixed pg_fetch_result(resource result, [int row_number,] mixed field_name)
2644 Returns values from a result identifier */
2647 zval *result, *field=NULL;
2654 if (zend_parse_parameters(argc, "rz", &result, &field) == FAILURE) {
2658 if (zend_parse_parameters(argc, "rlz", &result, &row, &field) == FAILURE) {
2663 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
2667 pgsql_result = pg_result->result;
2679 php_error_docref(NULL, E_WARNING, "Unable to jump to row " ZEND_LONG_FMT " on PostgreSQL result index " ZEND_LONG_FMT,
2680 row, Z_LVAL_P(result));
2715 zval *result, *zrow = NULL;
2727 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|z!Sz", &result, &zrow, &class_name, &ctor_params) == FAILURE) {
2741 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|z!l", &result, &zrow, &result_type) == FAILURE) {
2758 php_error_docref(NULL, E_WARNING, "Invalid result type");
2762 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
2766 pgsql_result = pg_result->result;
2770 php_error_docref(NULL, E_WARNING, "Unable to jump to row " ZEND_LONG_FMT " on PostgreSQL result index " ZEND_LONG_FMT,
2771 row, Z_LVAL_P(result));
2868 /* {{{ proto array pg_fetch_row(resource result [, int row [, int result_type]])
2876 /* {{{ proto array pg_fetch_assoc(resource result [, int row])
2888 /* {{{ proto array pg_fetch_array(resource result [, int row [, int result_type]])
2896 /* {{{ proto object pg_fetch_object(resource result [, int row [, string class_name [, NULL|array ctor_params]]])
2906 /* {{{ proto array pg_fetch_all(resource result [, int result_type])
2910 zval *result;
2915 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &result, &result_type) == FAILURE) {
2920 php_error_docref(NULL, E_WARNING, "Invalid result type");
2924 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
2928 pgsql_result = pg_result->result;
2937 /* {{{ proto array pg_fetch_all_columns(resource result [, int column_number])
2941 zval *result;
2948 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &result, &colno) == FAILURE) {
2952 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
2956 pgsql_result = pg_result->result;
2980 /* {{{ proto bool pg_result_seek(resource result, int offset)
2984 zval *result;
2988 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rl", &result, &row) == FAILURE) {
2992 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
2996 if (row < 0 || row >= PQntuples(pg_result->result)) {
3013 zval *result, *field;
3020 if (zend_parse_parameters(argc, "rz", &result, &field) == FAILURE) {
3024 if (zend_parse_parameters(argc, "rlz", &result, &row, &field) == FAILURE) {
3029 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
3033 pgsql_result = pg_result->result;
3044 php_error_docref(NULL, E_WARNING, "Unable to jump to row " ZEND_LONG_FMT " on PostgreSQL result index " ZEND_LONG_FMT,
3045 row, Z_LVAL_P(result));
3080 /* {{{ proto int pg_field_prtlen(resource result, [int row,] mixed field_name_or_number)
3088 /* {{{ proto int pg_field_is_null(resource result, [int row,] mixed field_name_or_number)
3096 /* {{{ proto bool pg_free_result(resource result)
3097 Free result memory */
3100 zval *result;
3103 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &result) == FAILURE) {
3107 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
3111 zend_list_close(Z_RES_P(result));
3116 /* {{{ proto string pg_last_oid(resource result)
3120 zval *result;
3127 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &result) == FAILURE) {
3131 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
3135 pgsql_result = pg_result->result;
3816 zend_long result, offset = 0, whence = SEEK_CUR;
3834 result = lo_lseek64((PGconn *)pgsql->conn, pgsql->lofd, offset, (int)whence);
3836 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, (int)offset, (int)whence);
3839 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, offset, whence);
3841 if (result > -1) {
3888 int result;
3900 result = lo_truncate64((PGconn *)pgsql->conn, pgsql->lofd, size);
3902 result = lo_truncate((PGconn *)pgsql->conn, pgsql->lofd, size);
3905 result = lo_truncate((PGconn *)pgsql->conn, pgsql->lofd, size);
3907 if (!result) {
4028 int result = 0;
4046 result = PQendcopy(pgsql);
4048 if (result!=0) {
4065 int result = 0, argc = ZEND_NUM_ARGS();
4084 result = PQputline(pgsql, query);
4085 if (result==EOF) {
4656 /* {{{ proto string pg_result_error(resource result)
4657 Get error message associated with result */
4660 zval *result;
4666 &result) == FAILURE) {
4670 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
4674 pgsql_result = pg_result->result;
4684 /* {{{ proto string pg_result_error_field(resource result, int fieldcode)
4685 Get error message field associated with result */
4688 zval *result;
4695 &result, &fieldcode) == FAILURE) {
4699 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
4703 pgsql_result = pg_result->result;
4882 PGresult *result;
4883 while ((result = PQgetResult(pgsql))) {
4884 PQclear(result);
5232 Get asynchronous query result */
5250 /* no result */
5255 pg_result->result = pgsql_result;
5261 /* {{{ proto mixed pg_result_status(resource result[, int result_type])
5262 Get status of query result */
5265 zval *result;
5272 &result, &result_type) == FAILURE) {
5276 if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
5280 pgsql_result = pg_result->result;
5314 php_error_docref(NULL, E_WARNING, "Invalid result type");
5845 PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, const zval *values, zval *result, zend_ulong opt)
5854 assert(Z_TYPE_P(result) == IS_ARRAY);
6484 zend_hash_update(Z_ARRVAL_P(result), field, &new_val);
6487 add_assoc_zval(result, escaped, &new_val);
6531 php_error_docref(NULL, E_NOTICE, "Detected unhandled result(s) in connection");
6740 php_error_docref(NULL, E_NOTICE, "Detected unhandled result(s) in connection");
6777 pgsql_handle->result = pg_result;
6952 php_error_docref(NULL, E_NOTICE, "Detected unhandled result(s) in connection");
7044 php_error_docref(NULL, E_NOTICE, "Detected unhandled result(s) in connection");
7180 php_error_docref(NULL, E_WARNING, "Invalid result type");
7189 php_error_docref(NULL, E_NOTICE, "Detected unhandled result(s) in connection");