summaryrefslogtreecommitdiff
path: root/ext/pdo/php_pdo.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-19 18:32:08 +0200
committerAnatol Belski <ab@php.net>2014-08-19 18:32:08 +0200
commit92269d25a37cbcfbb82364e9a58f232c880295a8 (patch)
treeb9ccedfec5cb6d5d4f6b45960961c71e4615e3f6 /ext/pdo/php_pdo.h
parentc517d6d8534b00cc0b84f16aad897c28b720a156 (diff)
downloadphp-git-92269d25a37cbcfbb82364e9a58f232c880295a8.tar.gz
ported pdo and pdo_sqlite
Diffstat (limited to 'ext/pdo/php_pdo.h')
-rw-r--r--ext/pdo/php_pdo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pdo/php_pdo.h b/ext/pdo/php_pdo.h
index bbb75ea63f..2072dd3469 100644
--- a/ext/pdo/php_pdo.h
+++ b/ext/pdo/php_pdo.h
@@ -49,7 +49,7 @@ PHP_MSHUTDOWN_FUNCTION(pdo);
PHP_MINFO_FUNCTION(pdo);
ZEND_BEGIN_MODULE_GLOBALS(pdo)
- long global_value;
+ php_int_t global_value;
ZEND_END_MODULE_GLOBALS(pdo)
#ifdef ZTS
@@ -59,12 +59,12 @@ ZEND_END_MODULE_GLOBALS(pdo)
#endif
#define REGISTER_PDO_CLASS_CONST_INT(const_name, value) \
- zend_declare_class_constant_int(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
+ zend_declare_class_constant_int(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, (php_int_t)value TSRMLS_CC);
#define REGISTER_PDO_CONST_LONG(const_name, value) { \
zend_class_entry **pce; \
if (zend_hash_find(CG(class_table), "pdo", sizeof("pdo"), (void **) &pce) != FAILURE) \
- zend_declare_class_constant_int(*pce, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \
+ zend_declare_class_constant_int(*pce, const_name, sizeof(const_name)-1, (php_int_t)value TSRMLS_CC); \
} \
#define REGISTER_PDO_CLASS_CONST_STRING(const_name, value) \