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 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