Skip to content

Commit

Permalink
Fix "iconv(): Passing null to parameter #3 ($string) of type string i…
Browse files Browse the repository at this point in the history
…s deprecated"
  • Loading branch information
thekid committed Nov 19, 2023
1 parent ce2818f commit 56fb7c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/php/rdbms/tds/TdsProtocol.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public function unmarshal($stream, $field, $records) {
$len= $stream->getShort();
if (0xFFFF === $len) {
return null;
} else if (0 === $len) {
return '';
} else if (\xp::ENCODING === $field['conv']) {
return $stream->read($len);
} else {
Expand Down

0 comments on commit 56fb7c2

Please sign in to comment.