PHP smallint

boggom

Well-Known Member
Joined
Jan 18, 2009
Messages
261
Reaction score
61
Location
George
Hi guys. We are trying to develop an application in PHP using the Pastel Partner SDK. Some of the SDK calls needs a Integer parameter to go with the call. The problem is that the COM object/SDK is expecting a SmallInt (this works fine in Delphi declaring the variable as SmallInt) and PHP does not allow declaring an Int as SmallInt. Does anybody have an idea how to solve this?

The error: Fatal error: Uncaught exception 'com_exception' with message 'Parameter 0: Type mismatch. ' in C:\xampp\htdocs\EHIRE\ImportDocH.php:43 Stack trace: #0 C:\xampp\htdocs\EHIRE\ImportDocH.php(43): com->ImportDocument(102) #1 {main} thrown in C:\xampp\htdocs\EHIRE\ImportDocH.php on line 43
 
The SDK had to be changed and recompiled for use with PHP - for interest sake.
 
thanks for posting the solution. even if nobody responded, this could help some poor sod in years to come.
 
The SDK had to be changed and recompiled for use with PHP - for interest sake.

Hi,

Did pastel supply you with the updated SDK?
Are you able to tell me who you dealt with?

I'm sitting with the same issue.
Thanks!
 
Top
Sign up to the MyBroadband newsletter
X