Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 54163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:10:37+00:00 2026-05-10T17:10:37+00:00

We have a customer that is trying to call our web service written in

  • 0

We have a customer that is trying to call our web service written in C# from PHP code. The web service call takes a long as parameter.

This call works fine for other customers calling from C# or Java but this customer is getting an error back from the call. I haven’t debugged their specific call but I am guessing that the 64bit integer is getting truncated somehow from PHP. The customer says they are just making the web service call with a string but is there a wrapper in PHP that does type conversion. Could this be losing the number information?

Thanks for any info.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:10:38+00:00Added an answer on May 10, 2026 at 5:10 pm

    Most PHP installations won’t support 64 bit integers – 32 is the max. You can check this by reading the PHP_INT_SIZE constant (4 = 32bit, 8 = 64bit) or read the PHP_INT_MAX value.

    <?php  echo PHP_INT_SIZE, '\n', PHP_INT_MAX;  ?> 

    If the web service class he is using is trying to type-convert a string representation of a 64 bit integer, then yes, it’s mostly likely being truncated or converted into a float. You can sort of see this behavior with this simple test

    <?php  echo intval( '12345678901234567890' ); // prints 2147483647, the max value for a 32 bit signed int. 

    Without knowing the details of his implementation, it’s difficult to postulate on what a good solution/workaround might be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a service to update customer information to server. One service call takes
I have a web database app that runs in IE7+ (customer requirement) It is
I have a customer/partner who's trying to link their application with ours using our
I have a List of customers that I'm trying to bind to a DataGridView.
We have a customer that would like to modify application user messages that we
I have a customer that has an application that uses an Advantage Database. I
I have a Customer class that contains a property, MyProperty, which is of a
Suppose I have a customer object that has all of the standard customer properties
Suppose I have a class Customer that is mapped to the database and everything
I have two tables in my database that look like that: Customer: C_ID city

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.