[php-src] Issue #8355: char CData can't be directly assigned a number
| From: | SerafimArts | Date: | Thu, 21 Apr 2022 13:50:31 +0000 |
| Subject: | [php-src] Issue #8355: char CData can't be directly assigned a number | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241128@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8355
Comment Author: SerafimArts
I suggest that when passing strings, they are forced to convert them to integers. This will solve
the problem, for example, with functions like:
```
void foo(const uint8_t* name);
```
Or functions that contain wide strings, like:
```
// typedef int16_t wchar_t;
// or
// typedef uint16_t wchar_t;
void foo(const wchar_t* name);
```