Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Backport] Add PHP typemap for gdBuffer, fixed by @bragef
  • Loading branch information
jmckenna committed Dec 6, 2019
1 parent 6201f06 commit d841ce9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mapscript/phpng/php7module.i
Expand Up @@ -3,3 +3,11 @@
php_info_print_table_row(2, \"MapServer Version\", msGetVersion());
php_info_print_table_end();
"


/* To support imageObj::getBytes */
%typemap(out) gdBuffer {
RETVAL_STRINGL((const char*)$1.data, $1.size);
if( $1.owns_data )
msFree($1.data);
}

0 comments on commit d841ce9

Please sign in to comment.