Lines Matching refs:OCI_G

198 	errstatus = OCIEnvNlsCreate(&OCI_G(env), PHP_OCI_INIT_MODE, 0, NULL, NULL, NULL, 0, NULL, 0, 0);  in PHP_INI_END()
206 if (OCI_G(env) in PHP_INI_END()
207 …&& OCIErrorGet(OCI_G(env), (ub4)1, NULL, &ora_error_code, tmp_buf, (ub4)PHP_OCI_ERRBUF_LEN, (ub4)O… in PHP_INI_END()
212 OCI_G(env) = NULL; in PHP_INI_END()
213 OCI_G(err) = NULL; in PHP_INI_END()
217 errstatus = OCIHandleAlloc (OCI_G(env), (dvoid **)&OCI_G(err), OCI_HTYPE_ERROR, 0, NULL); in PHP_INI_END()
220 …OCIErrorGet(OCI_G(env), (ub4)1, NULL, &ora_error_code, tmp_buf, (ub4)PHP_OCI_ERRBUF_LEN, (ub4)OCI_… in PHP_INI_END()
234 OCIHandleFree((dvoid *) OCI_G(env), OCI_HTYPE_ENV); in PHP_INI_END()
236 OCI_G(env) = NULL; in PHP_INI_END()
237 OCI_G(err) = NULL; in PHP_INI_END()
298 OCI_G(num_links) = OCI_G(num_persistent); in PHP_RINIT_FUNCTION()
299 OCI_G(errcode) = 0; in PHP_RINIT_FUNCTION()
300 OCI_G(edition) = NULL; in PHP_RINIT_FUNCTION()
307 OCI_G(shutdown) = 1; in PHP_MSHUTDOWN_FUNCTION()
322 if (OCI_G(edition)) { in PHP_RSHUTDOWN_FUNCTION()
323 efree(OCI_G(edition)); in PHP_RSHUTDOWN_FUNCTION()
368 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, OCI_G(num_persistent)); in PHP_MINFO_FUNCTION()
370 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, OCI_G(num_links)); in PHP_MINFO_FUNCTION()
388 OCI_G(num_links)--; in php_oci_connection_list_dtor()
403 OCI_G(num_persistent)--; in php_oci_pconnection_list_dtor()
404 OCI_G(num_links)--; in php_oci_pconnection_list_dtor()
435 OCI_G(in_call)) { in php_oci_pconnection_list_np_dtor()
446 OCI_G(num_persistent)--; in php_oci_pconnection_list_np_dtor()
838 if (!OCI_G(privileged_connect)) { in php_oci_do_connect_ex()
846 if (OCI_G(env) == NULL) { in php_oci_do_connect_ex()
848 if (OCI_G(env) == NULL) { in php_oci_do_connect_ex()
867 if (OCI_G(connection_class)){ in php_oci_do_connect_ex()
868 …smart_str_appendl_ex(&hashed_details, OCI_G(connection_class), strlen(OCI_G(connection_class)), 0); in php_oci_do_connect_ex()
873 if (OCI_G(edition)){ in php_oci_do_connect_ex()
874 smart_str_appendl_ex(&hashed_details, OCI_G(edition), strlen(OCI_G(edition)), 0); in php_oci_do_connect_ex()
891 PHP_OCI_CALL_RETURN(charsetid, OCINlsCharSetNameToId, (OCI_G(env), (CONST oratext *)charset)); in php_oci_do_connect_ex()
1015 if (OCI_G(old_oci_close_semantics)) { in php_oci_do_connect_ex()
1072 if (OCI_G(max_persistent) != -1 && OCI_G(num_persistent) >= OCI_G(max_persistent)) { in php_oci_do_connect_ex()
1076 if (OCI_G(max_persistent) != -1 && OCI_G(num_persistent) >= OCI_G(max_persistent)) { in php_oci_do_connect_ex()
1078 …NULL, E_NOTICE, "Too many open persistent connections (" ZEND_LONG_FMT ")", OCI_G(num_persistent)); in php_oci_do_connect_ex()
1135 …connection->idle_expiry = (OCI_G(persistent_timeout) > 0) ? (timestamp + OCI_G(persistent_timeout)… in php_oci_do_connect_ex()
1176 if (OCI_G(old_oci_close_semantics)) { in php_oci_do_connect_ex()
1180 OCI_G(num_persistent)++; in php_oci_do_connect_ex()
1181 OCI_G(num_links)++; in php_oci_do_connect_ex()
1187 OCI_G(num_links)++; in php_oci_do_connect_ex()
1190 OCI_G(num_links)++; in php_oci_do_connect_ex()
1195 …ection->is_persistent ? 1 : 0, exclusive ? 1 : 0, connection, OCI_G(num_persistent), OCI_G(num_lin… in php_oci_do_connect_ex()
1211 OCI_G(errcode) = 0; /* assume ping is successful */ in php_oci_connection_ping()
1217 PHP_OCI_CALL_RETURN(errstatus, OCIPing, (connection->svc, OCI_G(err), OCI_DEFAULT)); in php_oci_connection_ping()
1226 …OCIErrorGet(OCI_G(err), (ub4)1, NULL, &error_code, tmp_buf, (ub4)PHP_OCI_ERRBUF_LEN, (ub4)OCI_HTYP… in php_oci_connection_ping()
1230 OCI_G(errcode) = error_code; in php_oci_connection_ping()
1247 …connection->server, OCI_HTYPE_SERVER, (dvoid *)&ss, (ub4 *)0, OCI_ATTR_SERVER_STATUS, OCI_G(err))); in php_oci_connection_status()
1307 bool in_call_save = OCI_G(in_call); in php_oci_connection_close()
1338 PHP_OCI_CALL(OCIServerDetach, (connection->server, OCI_G(err), OCI_DEFAULT)); in php_oci_connection_close()
1385 OCI_G(in_call) = in_call_save; in php_oci_connection_close()
1399 bool in_call_save = OCI_G(in_call); in php_oci_connection_release()
1420 if (OCI_G(persistent_timeout) > 0) { in php_oci_connection_release()
1421 connection->idle_expiry = timestamp + OCI_G(persistent_timeout); in php_oci_connection_release()
1426 if (OCI_G(ping_interval) >= 0) { in php_oci_connection_release()
1427 *(connection->next_pingp) = timestamp + OCI_G(ping_interval); in php_oci_connection_release()
1471 OCI_G(in_call) = in_call_save; in php_oci_connection_release()
1823 if (!connection->used_this_request && OCI_G(persistent_timeout) != -1) { in php_oci_persistent_helper()
1877 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
1889 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
1901 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
1908 if (OCI_G(edition)) { in php_oci_create_spool()
1909 …h, (ub4) OCI_HTYPE_AUTHINFO, (dvoid *) OCI_G(edition), (ub4)(strlen(OCI_G(edition))), (ub4)OCI_ATT… in php_oci_create_spool()
1912 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
1920 …P_OCI8_DRIVER_NAME, (ub4) sizeof(PHP_OCI8_DRIVER_NAME)-1, (ub4) OCI_ATTR_DRIVER_NAME, OCI_G(err))); in php_oci_create_spool()
1923 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
1930 …>poolh),(ub4) OCI_HTYPE_SPOOL, (dvoid *) spoolAuth, (ub4)0, (ub4)OCI_ATTR_SPOOL_AUTH, OCI_G(err))); in php_oci_create_spool()
1933 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
1942 …PHP_OCI_CALL_RETURN(errstatus, OCISessionPoolCreate,(session_pool->env, OCI_G(err), session_pool->… in php_oci_create_spool()
1945 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
1987 if (OCI_G(edition)){ in php_oci_get_spool()
1988 smart_str_appendl_ex(&spool_hashed_details, OCI_G(edition), strlen(OCI_G(edition)), 0); in php_oci_get_spool()
2052 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIEnvNlsCreate, (&retenv, OCI_G(events) ? PHP_OCI_INIT_MODE |… in php_oci_create_env()
2054 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_env()
2084 if (OCI_G(statement_cache_size) > 0) { in php_oci_old_create_session()
2085 if (OCI_G(statement_cache_size) > SB4MAXVAL) in php_oci_old_create_session()
2088 statement_cache_size = (ub4) OCI_G(statement_cache_size); in php_oci_old_create_session()
2097 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->serv… in php_oci_old_create_session()
2099 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2100 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2106 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIServerAttach, (connection->server, OCI_G(err), (text *)dbna… in php_oci_old_create_session()
2108 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2109 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2116 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->sess… in php_oci_old_create_session()
2118 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2119 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2125 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->err)… in php_oci_old_create_session()
2127 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2128 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2134 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->svc)… in php_oci_old_create_session()
2136 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2137 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2144OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SESSION, (dvoid *) use… in php_oci_old_create_session()
2146 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2147 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2155OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SESSION, (dvoid *) pas… in php_oci_old_create_session()
2157 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2158 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2165 if (OCI_G(edition)) { in php_oci_old_create_session()
2166OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SESSION, (dvoid *) OCI… in php_oci_old_create_session()
2168 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2169 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2176OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SESSION, (dvoid *) PHP… in php_oci_old_create_session()
2178 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2179 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2185 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, (connection->svc, OCI_HTYPE_SVCCTX, connection->se… in php_oci_old_create_session()
2187 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2188 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2194 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, (connection->svc, OCI_HTYPE_SVCCTX, connection->se… in php_oci_old_create_session()
2196 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2197 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2204 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIPasswordChange, (connection->svc, OCI_G(err), (text *)usern… in php_oci_old_create_session()
2206 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2207 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2211 …RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(connect… in php_oci_old_create_session()
2213 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2214 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2230 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCISessionBegin, (connection->svc, OCI_G(err), connection->ses… in php_oci_old_create_session()
2232 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2233 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2237 if (OCI_G(errcode) != OCI_SUCCESS_WITH_INFO) { in php_oci_old_create_session()
2245 if (php_oci_ping_init(connection, OCI_G(err)) != OCI_SUCCESS) { in php_oci_old_create_session()
2246 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2250 …N(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX, (ub4 *) &stateme… in php_oci_old_create_session()
2252 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2253 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2273 if (OCI_G(statement_cache_size) > 0) { in php_oci_create_session()
2274 if (OCI_G(statement_cache_size) > SB4MAXVAL) in php_oci_create_session()
2277 statement_cache_size = (ub4) OCI_G(statement_cache_size); in php_oci_create_session()
2307 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->err)… in php_oci_create_session()
2309 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2310 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2317 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->auth… in php_oci_create_session()
2319 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2320 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2325OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->authinfo,(ub4) OCI_HTYPE_SESSION, (dvoid *) OCI… in php_oci_create_session()
2327 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2328 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2337 …RETURN(OCI_G(errcode),OCIAttrSet, ((dvoid *) connection->authinfo,(ub4) OCI_HTYPE_AUTHINFO, (dvoid… in php_oci_create_session()
2339 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2340 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2350 …_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)actual_spool->poolh, OCI_HTYPE_SPOOL, (dvoid *)&numo… in php_oci_create_session()
2351 …_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)actual_spool->poolh, OCI_HTYPE_SPOOL, (dvoid *)&numb… in php_oci_create_session()
2366 …PHP_OCI_CALL_RETURN(OCI_G(errcode),OCISessionGet, (connection->env, OCI_G(err), &(connection->svc)… in php_oci_create_session()
2368 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2369 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2375 if (OCI_G(errcode) != OCI_SUCCESS_WITH_INFO) { in php_oci_create_session()
2381 …_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(connec… in php_oci_create_session()
2383 …RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(connect… in php_oci_create_session()
2386 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextGetValue, (connection->session, OCI_G(err), (ub1 *)"… in php_oci_create_session()
2387 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2388 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2394 if (php_oci_ping_init(connection, OCI_G(err)) != OCI_SUCCESS) { in php_oci_create_session()
2395 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2401 *(connection->next_pingp) = timestamp + OCI_G(ping_interval); in php_oci_create_session()
2412 …N(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX, (ub4 *) &stateme… in php_oci_create_session()
2414 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2415 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2484 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextGetValue, (connection->session, errh, (ub1 *)"NEXT_P… in php_oci_ping_init()
2485 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_ping_init()
2486 return OCI_G(errcode); in php_oci_ping_init()
2491 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIMemoryAlloc, (connection->session, errh, (void **)&next_pin… in php_oci_ping_init()
2492 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_ping_init()
2493 return OCI_G(errcode); in php_oci_ping_init()
2497 if (OCI_G(ping_interval) >= 0) { in php_oci_ping_init()
2499 *next_pingp = timestamp + OCI_G(ping_interval); in php_oci_ping_init()
2505 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextSetValue, (connection->session, errh, OCI_DURATION_S… in php_oci_ping_init()
2506 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_ping_init()
2508 return OCI_G(errcode); in php_oci_ping_init()