summaryrefslogtreecommitdiff
path: root/zend/constantimpl.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-02-05 21:00:22 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-02-05 21:00:22 +0100
commit1432d5f4bb053fcaa12a9b7e50c4d3787eb5194b (patch)
treed1ed68102d5266303deeebeb506e1d607acabf70 /zend/constantimpl.h
parent45d59165cb6b4c80fd26d555eae8ca8f2a7d0d6f (diff)
parentae07ef4cf606147c77b6ba472956e2793e251ba6 (diff)
Merge branch 'master' of https://github.com/CopernicaMarketingSoftware/PHP-CPP
Diffstat (limited to 'zend/constantimpl.h')
-rw-r--r--zend/constantimpl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/zend/constantimpl.h b/zend/constantimpl.h
index 7320a8b..1fb1676 100644
--- a/zend/constantimpl.h
+++ b/zend/constantimpl.h
@@ -127,8 +127,13 @@ public:
break;
case IS_LONG:
+#ifdef PHPCPP_32BIT
+ // 32bit systems find this difficult
+ clss.property(_name, (int32_t)Z_LVAL(_constant.value), Php::Const);
+#else
// set a long constant
clss.property(_name, Z_LVAL(_constant.value), Php::Const);
+#endif
break;
case IS_DOUBLE: