Skip to content

Commit b42139a

Browse files
committed
chore(agent): remove obsolete code (11/17) (#1080)
This PR removes obsolete `PHP7` codeblocks. PR: 11/17
1 parent 1870876 commit b42139a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

agent/php_pdo_private.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,7 @@ extern int nr_php_pdo_rebind_apply_parameter(struct pdo_bound_param_data* param,
118118
*/
119119
static inline pdo_dbh_t* nr_php_pdo_get_database_object_internal(
120120
zval* dbh TSRMLS_DC) {
121-
#ifdef PHP7
122121
return Z_PDO_DBH_P(dbh);
123-
#else
124-
return (pdo_dbh_t*)zend_object_store_get_object(dbh TSRMLS_CC);
125-
#endif /* PHP7 */
126122
}
127123

128124
/*
@@ -138,11 +134,7 @@ static inline pdo_dbh_t* nr_php_pdo_get_database_object_internal(
138134
*/
139135
static inline pdo_stmt_t* nr_php_pdo_get_statement_object_internal(
140136
zval* stmt TSRMLS_DC) {
141-
#ifdef PHP7
142137
return Z_PDO_STMT_P(stmt);
143-
#else
144-
return (pdo_stmt_t*)zend_object_store_get_object(stmt TSRMLS_CC);
145-
#endif /* PHP7 */
146138
}
147139

148140
/*

0 commit comments

Comments
 (0)