I’m trying to set the value of a char* of a struct. This is a basic example: I’m getting an exception: FFIException: Incompatible types when assigning to type ‘char*’ from PHP ‘string’ My question is: How to set the char *name of a struct? My dirty way was to make an array of chars, str_split the string and set the