We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Tshiamo T.
11 years agoNew member | Level 1
64 bit Int Error on windows server 2012 R2 64 bit and PHP 64 bit
Hi,
I setup an amazon instance with windows server 2012 R2 and installed 64 bit PHP 5.5.22. I'm getting this error:
Fatal error: Uncaught exception 'Exception' with message 'The Dropbox SDK uses 64-bit integers, but it looks like we're running on a version of PHP that doesn't support 64-bit integers (PHP_INT_MAX=2147483647). Library: "C:\inetpub\wwwroot\dropbox\dropboxCoreApi\lib\Dropbox\RequestUtil.php"' in C:\inetpub\wwwroot\dropbox\dropboxCoreApi\lib\Dropbox\RequestUtil.php:22
Stack trace:
#0 C:\inetpub\wwwroot\dropbox\dropboxCoreApi\lib\Dropbox\autoload.php(27): require_once()
#1 [internal function]: Dropbox\autoload('Dropbox\\Request...')
#2 C:\inetpub\wwwroot\dropbox\dropboxCoreApi\lib\Dropbox\SSLTester.php(96): spl_autoload_call('Dropbox\\Request...')
#3 C:\inetpub\wwwroot\dropbox\dropboxCoreApi\lib\Dropbox\SSLTester.php(83): Dropbox\SSLTester::testAllowed('https://www.dro...')
#4 C:\inetpub\wwwroot\dropbox\dropboxCoreApi\lib\Dropbox\SSLTester.php(40): Dropbox\SSLTester::testMulti(Array)
#5 C:\inetpub\wwwroot\dropbox\dropboxCoreApi\SDKexamples\test-ssl.php(38): Dropbox\SSLTester::test()
Please assist. Have I done something wrong in the setup?
2 Replies
Replies have been turned off for this discussion
- Greg-DB11 years ago
Dropbox Community Moderator
Due to the size of certain numbers used by the SDK, it requires a 64-bit build of PHP in order to run properly. (Or more specifically, the SDK checks the size of PHP_INT_MAX, as some of the numbers, like file sizes, quota, etc, can be larger than 32-bit ints can handle.) It sounds like you currently only have a 32-bit ints available though, as otherwise the number shown would be much higher. How you make this available will depend a bit on your platform though, and is outside the scope of Dropbox API support, so I'm afraid I won't be able to be offer much more insight. (It looks like there's some information here though: http://stackoverflow.com/questions/17837157/php-64-bit-with-php-int-max-2147483647 )
- Tshiamo T.11 years agoNew member | Level 1
Thanks for link, I'll have a look - although I think i did go through it. I suspected it must be just the platform, whats strange is that everything on my platform is 64 Bit (OS, Hardware, PHP). Strange. Thanks again.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!