Lines Matching refs:OCI_G

180 	errstatus = OCIEnvNlsCreate(&OCI_G(env), PHP_OCI_INIT_MODE, 0, NULL, NULL, NULL, 0, NULL, 0, 0);  in PHP_INI_END()
188 if (OCI_G(env) in PHP_INI_END()
189 …&& OCIErrorGet(OCI_G(env), (ub4)1, NULL, &ora_error_code, tmp_buf, (ub4)PHP_OCI_ERRBUF_LEN, (ub4)O… in PHP_INI_END()
194 OCI_G(env) = NULL; in PHP_INI_END()
195 OCI_G(err) = NULL; in PHP_INI_END()
199 errstatus = OCIHandleAlloc (OCI_G(env), (dvoid **)&OCI_G(err), OCI_HTYPE_ERROR, 0, NULL); in PHP_INI_END()
212 …PHP_OCI_CALL(OCIHandleAlloc, (OCI_G(env), (dvoid **) &cpoolh, OCI_HTYPE_CPOOL, (size_t) 0, (dvoid … in PHP_INI_END()
213 …PHP_OCI_CALL(OCIConnectionPoolCreate, (OCI_G(env), OCI_G(err), cpoolh, NULL, 0, NULL, 0, 0, 0, 0, … in PHP_INI_END()
214 PHP_OCI_CALL(OCIConnectionPoolDestroy, (cpoolh, OCI_G(err), OCI_DEFAULT)); in PHP_INI_END()
218 …OCIErrorGet(OCI_G(env), (ub4)1, NULL, &ora_error_code, tmp_buf, (ub4)PHP_OCI_ERRBUF_LEN, (ub4)OCI_… in PHP_INI_END()
232 OCIHandleFree((dvoid *) OCI_G(env), OCI_HTYPE_ENV); in PHP_INI_END()
234 OCI_G(env) = NULL; in PHP_INI_END()
235 OCI_G(err) = NULL; in PHP_INI_END()
402 OCI_G(num_links) = OCI_G(num_persistent); in PHP_RINIT_FUNCTION()
403 OCI_G(errcode) = 0; in PHP_RINIT_FUNCTION()
404 OCI_G(edition) = NULL; in PHP_RINIT_FUNCTION()
411 OCI_G(shutdown) = 1; in PHP_MSHUTDOWN_FUNCTION()
426 if (OCI_G(edition)) { in PHP_RSHUTDOWN_FUNCTION()
427 efree(OCI_G(edition)); in PHP_RSHUTDOWN_FUNCTION()
484 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, OCI_G(num_persistent)); in PHP_MINFO_FUNCTION()
486 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, OCI_G(num_links)); in PHP_MINFO_FUNCTION()
504 OCI_G(num_links)--; in php_oci_connection_list_dtor()
519 OCI_G(num_persistent)--; in php_oci_pconnection_list_dtor()
520 OCI_G(num_links)--; in php_oci_pconnection_list_dtor()
551 OCI_G(in_call)) { in php_oci_pconnection_list_np_dtor()
562 OCI_G(num_persistent)--; in php_oci_pconnection_list_np_dtor()
954 if (!OCI_G(privileged_connect)) { in php_oci_do_connect_ex()
962 if (OCI_G(env) == NULL) { in php_oci_do_connect_ex()
964 if (OCI_G(env) == NULL) { in php_oci_do_connect_ex()
983 if (OCI_G(connection_class)){ in php_oci_do_connect_ex()
984 …smart_str_appendl_ex(&hashed_details, OCI_G(connection_class), strlen(OCI_G(connection_class)), 0); in php_oci_do_connect_ex()
989 if (OCI_G(edition)){ in php_oci_do_connect_ex()
990 smart_str_appendl_ex(&hashed_details, OCI_G(edition), strlen(OCI_G(edition)), 0); in php_oci_do_connect_ex()
1007 PHP_OCI_CALL_RETURN(charsetid, OCINlsCharSetNameToId, (OCI_G(env), (CONST oratext *)charset)); in php_oci_do_connect_ex()
1133 if (OCI_G(old_oci_close_semantics)) { in php_oci_do_connect_ex()
1190 if (OCI_G(max_persistent) != -1 && OCI_G(num_persistent) >= OCI_G(max_persistent)) { in php_oci_do_connect_ex()
1194 if (OCI_G(max_persistent) != -1 && OCI_G(num_persistent) >= OCI_G(max_persistent)) { in php_oci_do_connect_ex()
1196 …NULL, E_NOTICE, "Too many open persistent connections (" ZEND_LONG_FMT ")", OCI_G(num_persistent)); in php_oci_do_connect_ex()
1253 …connection->idle_expiry = (OCI_G(persistent_timeout) > 0) ? (timestamp + OCI_G(persistent_timeout)… in php_oci_do_connect_ex()
1294 if (OCI_G(old_oci_close_semantics)) { in php_oci_do_connect_ex()
1298 OCI_G(num_persistent)++; in php_oci_do_connect_ex()
1299 OCI_G(num_links)++; in php_oci_do_connect_ex()
1305 OCI_G(num_links)++; in php_oci_do_connect_ex()
1308 OCI_G(num_links)++; in php_oci_do_connect_ex()
1313 …ection->is_persistent ? 1 : 0, exclusive ? 1 : 0, connection, OCI_G(num_persistent), OCI_G(num_lin… in php_oci_do_connect_ex()
1332 OCI_G(errcode) = 0; /* assume ping is successful */ in php_oci_connection_ping()
1340 PHP_OCI_CALL_RETURN(errstatus, OCIPing, (connection->svc, OCI_G(err), OCI_DEFAULT)); in php_oci_connection_ping()
1343 …PHP_OCI_CALL_RETURN(errstatus, OCIServerVersion, (connection->svc, OCI_G(err), (text *)version, si… in php_oci_connection_ping()
1353 …OCIErrorGet(OCI_G(err), (ub4)1, NULL, &error_code, tmp_buf, (ub4)PHP_OCI_ERRBUF_LEN, (ub4)OCI_HTYP… in php_oci_connection_ping()
1357 OCI_G(errcode) = error_code; in php_oci_connection_ping()
1374 …connection->server, OCI_HTYPE_SERVER, (dvoid *)&ss, (ub4 *)0, OCI_ATTR_SERVER_STATUS, OCI_G(err))); in php_oci_connection_status()
1434 zend_bool in_call_save = OCI_G(in_call); in php_oci_connection_close()
1465 PHP_OCI_CALL(OCIServerDetach, (connection->server, OCI_G(err), OCI_DEFAULT)); in php_oci_connection_close()
1512 OCI_G(in_call) = in_call_save; in php_oci_connection_close()
1526 zend_bool in_call_save = OCI_G(in_call); in php_oci_connection_release()
1547 if (OCI_G(persistent_timeout) > 0) { in php_oci_connection_release()
1548 connection->idle_expiry = timestamp + OCI_G(persistent_timeout); in php_oci_connection_release()
1553 if (OCI_G(ping_interval) >= 0) { in php_oci_connection_release()
1554 *(connection->next_pingp) = timestamp + OCI_G(ping_interval); in php_oci_connection_release()
1608 OCI_G(in_call) = in_call_save; in php_oci_connection_release()
1964 if (!connection->used_this_request && OCI_G(persistent_timeout) != -1) { in php_oci_persistent_helper()
2018 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
2030 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
2047 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
2054 if (OCI_G(edition)) { in php_oci_create_spool()
2055 …h, (ub4) OCI_HTYPE_AUTHINFO, (dvoid *) OCI_G(edition), (ub4)(strlen(OCI_G(edition))), (ub4)OCI_ATT… in php_oci_create_spool()
2058 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
2066 …P_OCI8_DRIVER_NAME, (ub4) sizeof(PHP_OCI8_DRIVER_NAME)-1, (ub4) OCI_ATTR_DRIVER_NAME, OCI_G(err))); in php_oci_create_spool()
2069 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
2076 …>poolh),(ub4) OCI_HTYPE_SPOOL, (dvoid *) spoolAuth, (ub4)0, (ub4)OCI_ATTR_SPOOL_AUTH, OCI_G(err))); in php_oci_create_spool()
2079 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
2089 …PHP_OCI_CALL_RETURN(errstatus, OCISessionPoolCreate,(session_pool->env, OCI_G(err), session_pool->… in php_oci_create_spool()
2092 OCI_G(errcode) = php_oci_error(OCI_G(err), errstatus); in php_oci_create_spool()
2134 if (OCI_G(edition)){ in php_oci_get_spool()
2135 smart_str_appendl_ex(&spool_hashed_details, OCI_G(edition), strlen(OCI_G(edition)), 0); in php_oci_get_spool()
2200 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIEnvNlsCreate, (&retenv, OCI_G(events) ? PHP_OCI_INIT_MODE |… in php_oci_create_env()
2202 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_env()
2232 if (OCI_G(statement_cache_size) > 0) { in php_oci_old_create_session()
2233 if (OCI_G(statement_cache_size) > SB4MAXVAL) in php_oci_old_create_session()
2236 statement_cache_size = (ub4) OCI_G(statement_cache_size); in php_oci_old_create_session()
2245 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->serv… in php_oci_old_create_session()
2247 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2248 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2254 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIServerAttach, (connection->server, OCI_G(err), (text *)dbna… in php_oci_old_create_session()
2256 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2257 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2264 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->sess… in php_oci_old_create_session()
2266 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2267 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2273 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->err)… in php_oci_old_create_session()
2275 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2276 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2282 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->svc)… in php_oci_old_create_session()
2284 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2285 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2292OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SESSION, (dvoid *) use… in php_oci_old_create_session()
2294 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2295 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2303OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SESSION, (dvoid *) pas… in php_oci_old_create_session()
2305 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2306 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2314 if (OCI_G(edition)) { in php_oci_old_create_session()
2315OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SESSION, (dvoid *) OCI… in php_oci_old_create_session()
2317 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2318 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2327OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SESSION, (dvoid *) PHP… in php_oci_old_create_session()
2329 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2330 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2337 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, (connection->svc, OCI_HTYPE_SVCCTX, connection->se… in php_oci_old_create_session()
2339 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2340 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2346 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, (connection->svc, OCI_HTYPE_SVCCTX, connection->se… in php_oci_old_create_session()
2348 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2349 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2356 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIPasswordChange, (connection->svc, OCI_G(err), (text *)usern… in php_oci_old_create_session()
2358 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2359 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2363 …RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(connect… in php_oci_old_create_session()
2365 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2366 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2382 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCISessionBegin, (connection->svc, OCI_G(err), connection->ses… in php_oci_old_create_session()
2384 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2385 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2389 if (OCI_G(errcode) != OCI_SUCCESS_WITH_INFO) { in php_oci_old_create_session()
2397 if (php_oci_ping_init(connection, OCI_G(err)) != OCI_SUCCESS) { in php_oci_old_create_session()
2398 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2402 …N(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX, (ub4 *) &stateme… in php_oci_old_create_session()
2404 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_old_create_session()
2405 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_old_create_session()
2427 if (OCI_G(statement_cache_size) > 0) { in php_oci_create_session()
2428 if (OCI_G(statement_cache_size) > SB4MAXVAL) in php_oci_create_session()
2431 statement_cache_size = (ub4) OCI_G(statement_cache_size); in php_oci_create_session()
2461 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->err)… in php_oci_create_session()
2463 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2464 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2471 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->auth… in php_oci_create_session()
2473 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2474 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2480OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->authinfo,(ub4) OCI_HTYPE_SESSION, (dvoid *) OCI… in php_oci_create_session()
2482 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2483 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2492 …RETURN(OCI_G(errcode),OCIAttrSet, ((dvoid *) connection->authinfo,(ub4) OCI_HTYPE_AUTHINFO, (dvoid… in php_oci_create_session()
2494 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2495 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2506 …_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)actual_spool->poolh, OCI_HTYPE_SPOOL, (dvoid *)&numo… in php_oci_create_session()
2507 …_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)actual_spool->poolh, OCI_HTYPE_SPOOL, (dvoid *)&numb… in php_oci_create_session()
2522 …PHP_OCI_CALL_RETURN(OCI_G(errcode),OCISessionGet, (connection->env, OCI_G(err), &(connection->svc)… in php_oci_create_session()
2524 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2525 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2531 if (OCI_G(errcode) != OCI_SUCCESS_WITH_INFO) { in php_oci_create_session()
2537 …_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(connec… in php_oci_create_session()
2539 …RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(connect… in php_oci_create_session()
2542 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextGetValue, (connection->session, OCI_G(err), (ub1 *)"… in php_oci_create_session()
2543 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2544 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2550 if (php_oci_ping_init(connection, OCI_G(err)) != OCI_SUCCESS) { in php_oci_create_session()
2551 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2557 *(connection->next_pingp) = timestamp + OCI_G(ping_interval); in php_oci_create_session()
2568 …N(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX, (ub4 *) &stateme… in php_oci_create_session()
2570 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_create_session()
2571 php_oci_error(OCI_G(err), OCI_G(errcode)); in php_oci_create_session()
2640 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextGetValue, (connection->session, errh, (ub1 *)"NEXT_P… in php_oci_ping_init()
2641 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_ping_init()
2642 return OCI_G(errcode); in php_oci_ping_init()
2647 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIMemoryAlloc, (connection->session, errh, (void **)&next_pin… in php_oci_ping_init()
2648 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_ping_init()
2649 return OCI_G(errcode); in php_oci_ping_init()
2653 if (OCI_G(ping_interval) >= 0) { in php_oci_ping_init()
2655 *next_pingp = timestamp + OCI_G(ping_interval); in php_oci_ping_init()
2661 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextSetValue, (connection->session, errh, OCI_DURATION_S… in php_oci_ping_init()
2662 if (OCI_G(errcode) != OCI_SUCCESS) { in php_oci_ping_init()
2664 return OCI_G(errcode); in php_oci_ping_init()