]> granicus.if.org Git - php/commitdiff
Fixed symbol export
authorAnatol Belski <ab@php.net>
Thu, 27 Jun 2013 12:00:56 +0000 (14:00 +0200)
committerAnatol Belski <ab@php.net>
Thu, 27 Jun 2013 12:00:56 +0000 (14:00 +0200)
That's needed for baabd1192973156ac79c35f6d1b0dced4af8e8fb to link
properly.

ext/pdo/pdo_dbh.c
ext/pdo/php_pdo_error.h

index 25db6842f623538a0f568139d34bdb1afe8a3055..833c608f6683902c4c065b796e2f0d2b915fb50f 100644 (file)
@@ -101,7 +101,7 @@ void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *sqlstate
 }
 /* }}} */
 
-void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
+PDO_API void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
 {
        pdo_error_type *pdo_err = &dbh->error_code;
        const char *msg = "<<Unknown>>";
index 13d45ebcfe1b33a8d83407dfeed8567770c8e889..387436af8fd224701ed0fb13c2fc04ab0e95c9e2 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "php_pdo_driver.h"
 
-extern void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC);
+PDO_API void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC);
 
 #define PDO_DBH_CLEAR_ERR()             do { \
        strlcpy(dbh->error_code, PDO_ERR_NONE, sizeof(PDO_ERR_NONE)); \