Skip to content
Permalink
Browse files

[Backport] Add PHP typemap for gdBuffer, fixed by @bragef

  • Loading branch information
jmckenna committed Dec 6, 2019
1 parent 6201f06 commit d841ce982a6b58bc88c251d61222bf34b8ae9e8b
Showing with 8 additions and 0 deletions.
  1. +8 −0 mapscript/phpng/php7module.i
@@ -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.
You can’t perform that action at this time.