Lines Matching refs:NULL
223 NULL,
235 #define CHECK_LINK(link) { if (link==-1) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: A … in ZEND_DECLARE_MODULE_GLOBALS()
250 #define efree_n(x) { efree(x); x = NULL; }
259 result = NULL; \
265 result = NULL; \
316 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL); in php_free_sybase_result()
330 if (sybase_ptr->callback_name != NULL) { in _close_sybase_link()
332 sybase_ptr->callback_name= NULL; in _close_sybase_link()
341 &con_status, CS_UNUSED, NULL)!=CS_SUCCEED) { in _close_sybase_link()
342 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to get connection status on close"); in _close_sybase_link()
368 &con_status, CS_UNUSED, NULL)!=CS_SUCCEED) { in _close_sybase_plink()
369 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to get connection status on close"); in _close_sybase_plink()
391 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Client message: %s (severity %ld)", errmsg-… in _client_message_handler()
414 zval *msgnumber, *severity, *state, *line, *text, *retval = NULL; in _call_message_handler()
418 if (NULL == callback_name) return 0; in _call_message_handler()
441 …if (call_user_function_ex(EG(function_table), NULL, callback_name, &retval, 5, args, 0, NULL TSRML… in _call_message_handler()
446 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Cannot call the messagehandler %s", Z_STRVAL… in _call_message_handler()
477 …if (ct_con_props(connection, CS_GET, CS_USERDATA, &sybase, CS_SIZEOF(sybase), NULL) != CS_SUCCEED)… in _server_message_handler()
478 sybase = NULL; in _server_message_handler()
504 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Server message: %s (severity %ld, procedure… in _server_message_handler()
519 …STD_PHP_INI_ENTRY("sybct.hostname", NULL, PHP_INI_ALL, OnUpdateString, hostname, zend_sybase_globa…
533 …if (ct_callback(sybase_globals->context, NULL, CS_SET, CS_SERVERMSG_CB, (CS_VOID *)_server_message… in PHP_INI_END()
534 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to set server message handler"); in PHP_INI_END()
537 …if (ct_callback(sybase_globals->context, NULL, CS_SET, CS_CLIENTMSG_CB, (CS_VOID *)_client_message… in PHP_INI_END()
538 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to set client message handler"); in PHP_INI_END()
549 …_dt_info(sybase_globals->context, CS_SET, NULL, CS_DT_CONVFMT, CS_UNUSED, &dt_convfmt, sizeof(dt_c… in PHP_INI_END()
550 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to set datetime conversion format"); in PHP_INI_END()
564 …if (ct_config(sybase_globals->context, CS_SET, CS_TIMEOUT, &cs_timeout, CS_UNUSED, NULL)!=CS_SUCCE… in PHP_INI_END()
565 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to update the timeout"); in PHP_INI_END()
570 sybase_globals->callback_name = NULL; in PHP_INI_END()
584 …le_link = zend_register_list_destructors_ex(_close_sybase_link, NULL, "sybase-ct link", module_num… in PHP_MINIT_FUNCTION()
585 …le_plink = zend_register_list_destructors_ex(NULL, _close_sybase_plink, "sybase-ct link persistent… in PHP_MINIT_FUNCTION()
586 …le_result = zend_register_list_destructors_ex(php_free_sybase_result, NULL, "sybase-ct result", mo… in PHP_MINIT_FUNCTION()
618 SybCtG(appname) = NULL; in PHP_RSHUTDOWN_FUNCTION()
621 SybCtG(callback_name)= NULL; in PHP_RSHUTDOWN_FUNCTION()
624 SybCtG(server_message) = NULL; in PHP_RSHUTDOWN_FUNCTION()
636 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to allocate connection record"); in php_sybase_do_connect_internal()
641 …if (ct_con_props(sybase->connection, CS_SET, CS_USERDATA, &sybase, CS_SIZEOF(sybase), NULL)!=CS_SU… in php_sybase_do_connect_internal()
642 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to set userdata"); in php_sybase_do_connect_internal()
648 ct_con_props(sybase->connection, CS_SET, CS_USERNAME, user, CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
651 ct_con_props(sybase->connection, CS_SET, CS_PASSWORD, passwd, CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
654 ct_con_props(sybase->connection, CS_SET, CS_APPNAME, appname, CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
656 ct_con_props(sybase->connection, CS_SET, CS_APPNAME, SybCtG(appname), CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
660 ct_con_props(sybase->connection, CS_SET, CS_HOSTNAME, SybCtG(hostname), CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
665 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to allocate locale information"); in php_sybase_do_connect_internal()
667 …if (cs_locale(SybCtG(context), CS_SET, tmp_locale, CS_LC_ALL, NULL, CS_NULLTERM, NULL)!=CS_SUCCEED… in php_sybase_do_connect_internal()
668 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to load default locale data"); in php_sybase_do_connect_internal()
670 …if (cs_locale(SybCtG(context), CS_SET, tmp_locale, CS_SYB_CHARSET, charset, CS_NULLTERM, NULL)!=CS… in php_sybase_do_connect_internal()
671 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to update character set"); in php_sybase_do_connect_internal()
673 …if (ct_con_props(sybase->connection, CS_SET, CS_LOC_PROP, tmp_locale, CS_UNUSED, NULL)!=CS_SUCCEED… in php_sybase_do_connect_internal()
674 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to update connection properties"); in php_sybase_do_connect_internal()
682 …ybase->connection, CS_SET, CS_PACKETSIZE, (CS_VOID *)&packetsize, CS_UNUSED, NULL) != CS_SUCCEED) { in php_sybase_do_connect_internal()
683 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to update connection packetsize"); in php_sybase_do_connect_internal()
701 …if (ct_config(SybCtG(context), CS_SET, CS_LOGIN_TIMEOUT, &cs_login_timeout, CS_UNUSED, NULL)!=CS_S… in php_sybase_do_connect_internal()
702 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to update the login timeout"); in php_sybase_do_connect_internal()
709 sybase->callback_name = NULL; in php_sybase_do_connect_internal()
713 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to connect"); in php_sybase_do_connect_internal()
719 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to allocate command record"); in php_sybase_do_connect_internal()
731 char *user = NULL, *passwd = NULL, *host = NULL, *charset = NULL, *appname = NULL; in php_sybase_do_connect()
737 host= user= passwd= charset= appname= NULL; in php_sybase_do_connect()
769 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Too many open links (%ld)", SybCtG(num_links… in php_sybase_do_connect()
774 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Too many open persistent links (%ld)", SybCt… in php_sybase_do_connect()
793 …details, hashed_details_length+1, (void *) &new_le, sizeof(zend_rsrc_list_entry), NULL)==FAILURE) { in php_sybase_do_connect()
815 &con_status, CS_UNUSED, NULL)!=CS_SUCCEED) { in php_sybase_do_connect()
816 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Unable to get connection status"); in php_sybase_do_connect()
876 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Too many open links (%ld)", SybCtG(num_links… in php_sybase_do_connect()
894 …, hashed_details_length+1, (void *) &new_index_ptr, sizeof(zend_rsrc_list_entry), NULL)==FAILURE) { in php_sybase_do_connect()
939 if (NULL == sybase_link_index) { in php_sybase_connection_id()
954 zval *sybase_link_index = NULL; in PHP_FUNCTION()
963 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: No connection to close"); in PHP_FUNCTION()
1020 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_CURRENT); in exec_cmd()
1028 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_ALL); in exec_cmd()
1045 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_ALL); in exec_cmd()
1062 zval *sybase_link_index = NULL; in PHP_FUNCTION()
1072 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: No connection"); in PHP_FUNCTION()
1124 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Command failed, cancelling rest"); in php_sybase_finish_results()
1125 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL); in php_sybase_finish_results()
1134 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase: Unexpected results, cancelling current"); in php_sybase_finish_results()
1135 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_CURRENT); in php_sybase_finish_results()
1140 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_CURRENT); in php_sybase_finish_results()
1144 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase: Unexpected results, cancelling all"); in php_sybase_finish_results()
1145 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL); in php_sybase_finish_results()
1166 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL); in php_sybase_finish_results()
1184 Z_DVAL(result) = zend_strtod(buf, NULL); \
1206 …while ((retcode=ct_fetch(result->sybase_ptr->cmd, CS_UNUSED, CS_UNUSED, CS_UNUSED, NULL))==CS_SUCC… in php_sybase_fetch_result_row()
1229 ZVAL_LONG(&result->data[i][j], strtol(result->tmp_buffer[j], NULL, 10)); in php_sybase_fetch_result_row()
1242 Z_LVAL(result->data[i][j]) = strtol(result->tmp_buffer[j], NULL, 10); in php_sybase_fetch_result_row()
1274 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Error reading row %d", result->num_rows); in php_sybase_fetch_result_row()
1289 result = NULL; in php_sybase_fetch_result_row()
1309 if (ct_res_info(sybase_ptr->cmd, CS_NUMDATA, &num_fields, CS_UNUSED, NULL)!=CS_SUCCEED) { in php_sybase_fetch_result_set()
1310 return NULL; in php_sybase_fetch_result_set()
1315 result->fields = NULL; in php_sybase_fetch_result_set()
1417 return NULL; in php_sybase_fetch_result_set()
1427 zval *sybase_link_index = NULL; in php_sybase_query()
1446 …php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase: Cannot use non-storing mode with buffered que… in php_sybase_query()
1451 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: No connection"); in php_sybase_query()
1464 zval *tmp = NULL; in php_sybase_query()
1466 …php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase: Called without first fetching all rows from a… in php_sybase_query()
1468 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_ALL); in php_sybase_query()
1490 result = NULL; in php_sybase_query()
1505 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Connection is dead"); in php_sybase_query()
1510 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_ALL); in php_sybase_query()
1512 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Cannot send command"); in php_sybase_query()
1523 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_ALL); in php_sybase_query()
1525 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Cannot read results"); in php_sybase_query()
1536 if (ct_res_info(sybase_ptr->cmd, CS_ROW_COUNT, &row_count, CS_UNUSED, NULL)==CS_SUCCEED) { in php_sybase_query()
1554 if (result == NULL) { in php_sybase_query()
1555 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_ALL); in php_sybase_query()
1580 if (result == NULL) { in php_sybase_query()
1581 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_ALL); in php_sybase_query()
1589 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_CURRENT); in php_sybase_query()
1594 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_CURRENT); in php_sybase_query()
1602 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_ALL); in php_sybase_query()
1620 ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_ALL); in php_sybase_query()
1634 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Retried deadlock %d times [max: %ld], giving… in php_sybase_query()
1690 zval *sybase_result_index = NULL; in PHP_FUNCTION()
1701 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL); in PHP_FUNCTION()
1723 zval *sybase_result_index = NULL; in PHP_FUNCTION()
1741 zval *sybase_result_index = NULL; in PHP_FUNCTION()
1759 zval *sybase_result_index = NULL; in PHP_FUNCTION()
1785 …zend_hash_index_update(Z_ARRVAL_P(return_value), i, (void *) &field_content, sizeof(zval* ), NULL); in PHP_FUNCTION()
1794 zval *sybase_result_index = NULL; in php_sybase_fetch_hash()
1828 zend_hash_index_update(Z_ARRVAL_P(return_value), i, (void *) &tmp, sizeof(zval *), NULL); in php_sybase_fetch_hash()
1837 …e), result->fields[i].name, strlen(result->fields[i].name)+1, (void *) &tmp, sizeof(zval *), NULL); in php_sybase_fetch_hash()
1847 zval *object = NULL; in PHP_FUNCTION()
1848 zval *sybase_result_index = NULL; in PHP_FUNCTION()
1849 zend_class_entry *ce = NULL; in PHP_FUNCTION()
1859 if (NULL != object) { in PHP_FUNCTION()
1872 zend_class_entry **pce = NULL; in PHP_FUNCTION()
1876 …php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase: Class %s has not been declared", Z_STRVAL_P(o… in PHP_FUNCTION()
1914 zval *sybase_result_index = NULL; in PHP_FUNCTION()
1929 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Bad row offset %ld, must be betweem 0 and %d… in PHP_FUNCTION()
1986 zval *sybase_result_index = NULL; in PHP_FUNCTION()
2002 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Bad column offset"); in PHP_FUNCTION()
2022 zval *sybase_result_index = NULL; in PHP_FUNCTION()
2032 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Bad column offset"); in PHP_FUNCTION()
2047 zval *sybase_result_index = NULL; in PHP_FUNCTION()
2063 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Bad row offset (%ld)", row); in PHP_FUNCTION()
2078 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: %s field not found in result", Z_STRVAL_P(fi… in PHP_FUNCTION()
2087 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Bad column offset specified"); in PHP_FUNCTION()
2103 zval *sybase_link_index = NULL; in PHP_FUNCTION()
2112 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: No connection"); in PHP_FUNCTION()
2198 zval *sybase_link_index= NULL; in PHP_FUNCTION()
2225 *callback = NULL; in PHP_FUNCTION()
2234 callback= NULL; in PHP_FUNCTION()