Skip to content

Commit 9a1c6c5

Browse files
committed
fix build (declare extern HashTable pdo_driver_hash)
1 parent c3a79b5 commit 9a1c6c5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ext/pdo/pdo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ZEND_DECLARE_MODULE_GLOBALS(pdo)
4242
/* True global resources - no need for thread safety here */
4343

4444
/* the registry of PDO drivers */
45-
static HashTable pdo_driver_hash;
45+
HashTable pdo_driver_hash;
4646

4747
/* we use persistent resources for the driver connection stuff */
4848
static int le_ppdo;

ext/pdo/php_pdo_int.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
/* Stuff private to the PDO extension and not for consumption by PDO drivers
2424
* */
25+
26+
extern HashTable pdo_driver_hash;
2527
extern zend_class_entry *pdo_exception_ce;
2628
int php_pdo_list_entry(void);
2729

0 commit comments

Comments
 (0)