Skip to content

Commit 5c47337

Browse files
committed
Make resource names consistent (#92)
1 parent a47d0c7 commit 5c47337

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

ibase_blobs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static void _php_ibase_free_blob(zend_resource *rsrc) /* {{{ */
7272
void php_ibase_blobs_minit(INIT_FUNC_ARGS) /* {{{ */
7373
{
7474
le_blob = zend_register_list_destructors_ex(_php_ibase_free_blob, NULL,
75-
"interbase blob", module_number);
75+
LE_BLOB, module_number);
7676
}
7777
/* }}} */
7878

ibase_events.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static void _php_ibase_free_event_rsrc(zend_resource *rsrc) /* {{{ */
9797
void php_ibase_events_minit(INIT_FUNC_ARGS) /* {{{ */
9898
{
9999
le_event = zend_register_list_destructors_ex(_php_ibase_free_event_rsrc, NULL,
100-
"interbase event", module_number);
100+
LE_EVENT, module_number);
101101
}
102102
/* }}} */
103103

ibase_query.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ typedef struct {
5757

5858
static int le_query;
5959

60-
#define LE_QUERY "Firebird/InterBase query"
61-
6260
static void _php_ibase_alloc_xsqlda_vars(XSQLDA *sqlda, ISC_SHORT *nullinds);
6361
static void _php_ibase_free_xsqlda(XSQLDA *sqlda) /* {{{ */
6462
{
@@ -111,7 +109,7 @@ void php_ibase_query_minit(INIT_FUNC_ARGS) /* {{{ */
111109
{
112110
(void)type;
113111
le_query = zend_register_list_destructors_ex(php_ibase_free_query_rsrc, NULL,
114-
"interbase query", module_number);
112+
LE_QUERY, module_number);
115113
}
116114
/* }}} */
117115

ibase_service.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static void _php_ibase_free_service(zend_resource *rsrc) /* {{{ */
7171
void php_ibase_service_minit(INIT_FUNC_ARGS) /* {{{ */
7272
{
7373
le_service = zend_register_list_destructors_ex(_php_ibase_free_service, NULL,
74-
"interbase service manager handle", module_number);
74+
LE_SCVH, module_number);
7575

7676
/* backup options */
7777
REGISTER_LONG_CONSTANT("IBASE_BKP_IGNORE_CHECKSUMS", isc_spb_bkp_ignore_checksums, CONST_PERSISTENT);

php_ibase_includes.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@
5454

5555
extern int le_link, le_plink, le_trans;
5656

57-
#define LE_LINK "Firebird/InterBase link"
57+
#define LE_LINK "Firebird/InterBase link"
5858
#define LE_PLINK "Firebird/InterBase persistent link"
5959
#define LE_TRANS "Firebird/InterBase transaction"
60+
#define LE_EVENT "Firebird/InterBase blob"
61+
#define LE_BLOB "Firebird/InterBase event"
62+
#define LE_QUERY "Firebird/InterBase query"
63+
#define LE_SCVH "Firebird/InterBase service manager handle"
6064

6165
#define IBASE_MSGSIZE 512
6266
#define MAX_ERRMSG (IBASE_MSGSIZE*2)

0 commit comments

Comments
 (0)