Repository navigation
Releases
Releases · SebZar/php-sapnwrfc
v2.2.0
Added
Connection::isOpen()to check whether the connection handle is open, without a network round-tripConnection::reconnect()to close and reopen a connection with the stored login parameters;RemoteFunctionobjects fetched before must be fetched again viagetFunction()- Support for PHP 8.6 (built and tested against 8.6.0RC4)
- Windows build script
build/build-windows.ps1that builds all PHP variants (TS/NTS, vs16/vs17/vs18) in one run, andbuild/publish-github-release.ps1to publish the DLLs as a GitHub release
Fixed
- Throw
FunctionCallExceptionwhen connection closed inRemoteFunction::setParameterActive(),RemoteFunction::isParameterActive() - Throw
ConnectionExceptioninstead of passing a closed handle to the SDK inConnection::getAttributes(),Connection::ping()andConnection::getFunction() RemoteFunction::invoke()did not detect a failingRfcCreateFunctionand continued with a NULL handle- Use-after-free and possible huge allocation when reading a TABLE parameter failed (gkralik#163)
- Return values of
RfcMoveToandRfcGetCurrentRowwere ignored when reading tables - Corrupt field names when setting table rows with multi-character field names
Connection::getFunction()ignored its$invalidateCacheparameterConnection::getAttributes()returnedpartnerIPaspartnerIPv6- Double free in
RemoteFunction::getName()and a reference leak inConnection::getFunction() - Memory leaks on several error paths in
getFunction(),invoke(), table reads andgetFunctionDescription() invoke(),Connectionoptions and connection parameters no longer change the caller's arrays (values were converted to string, float or bool in place)- INT values outside the 32-bit range were silently truncated; they now throw
- INT2 rejected -32768; INT8 values were truncated to 32 bits on read
- BCD/DECFLOAT read errors other than "buffer too small" were swallowed
- Option
use_function_desc_cachealso matched keys that only started with that name - RFC error details were lost when the connection-handle check itself failed
- Connection parameters with numeric keys could pass garbage entries to the SDK
Connection::setTraceLevel()wrote past its local variable on 64-bit builds- Wrong error message in
RemoteFunction::isParameterActive() - NULL dereference when a SAP string could not be converted to UTF-8
- Typo in an exception message of
Connection::getSSOTicket() - Docblock errors in the IDE stub file